Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
15e68450
Commit
15e68450
authored
Jul 18, 2017
by
Jeremy Morrell
Committed by
GitHub
Jul 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #446 from edmorley/cache-signature-stack
Add $STACK to the cache signature
parents
f935611d
d468ecdc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
CHANGELOG.md
CHANGELOG.md
+2
-0
cache.sh
lib/cache.sh
+1
-1
run
test/run
+1
-0
No files found.
CHANGELOG.md
View file @
15e68450
...
@@ -2,8 +2,10 @@
...
@@ -2,8 +2,10 @@
## Master
## Master
-
Add
`$STACK`
to the cache signature (#445)
-
Log output now differentiates between an empty cache and a new cache signature
-
Log output now differentiates between an empty cache and a new cache signature
## v106 (2017-06-19)
## v106 (2017-06-19)
-
Default to npm v5 if
`package-lock.json`
is present (#429)
-
Default to npm v5 if
`package-lock.json`
is present (#429)
...
...
lib/cache.sh
View file @
15e68450
source
$BP_DIR
/lib/binaries.sh
source
$BP_DIR
/lib/binaries.sh
create_signature
()
{
create_signature
()
{
echo
"
$
(
node
--version
)
;
$(
npm
--version
)
;
$(
yarn
--version
2>/dev/null
||
true
)
$PREBUILD
"
echo
"
$
{
STACK
}
;
$(
node
--version
)
;
$(
npm
--version
)
;
$(
yarn
--version
2>/dev/null
||
true
)
;
${
PREBUILD
}
"
}
}
save_signature
()
{
save_signature
()
{
...
...
test/run
View file @
15e68450
...
@@ -60,6 +60,7 @@ testBuildWithCache() {
...
@@ -60,6 +60,7 @@ testBuildWithCache() {
compile
"stable-node"
$cache
compile
"stable-node"
$cache
assertNotCaptured
"- node_modules (not cached - skipping)"
assertNotCaptured
"- node_modules (not cached - skipping)"
assertFileContains
"
${
STACK
}
"
"
${
cache
}
/node/signature"
assertCapturedSuccess
assertCapturedSuccess
rm
-rf
"
$cache
/node/node_modules"
rm
-rf
"
$cache
/node/node_modules"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment