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
cc9339a1
Commit
cc9339a1
authored
Apr 24, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test and patch for cache overriding checked-in node_modules
parent
322b3c4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
build.sh
lib/build.sh
+1
-1
run
test/run
+5
-1
No files found.
lib/build.sh
View file @
cc9339a1
...
...
@@ -164,7 +164,6 @@ install_npm() {
}
function
build_dependencies
()
{
restore_cache
if
[
"
$modules_source
"
==
""
]
;
then
info
"Skipping dependencies (no source for node_modules)"
...
...
@@ -176,6 +175,7 @@ function build_dependencies() {
npm
install
--unsafe-perm
--quiet
--userconfig
$build_dir
/.npmrc 2>&1 | indent
else
restore_cache
info
"Installing node modules"
npm
install
--unsafe-perm
--quiet
--userconfig
$build_dir
/.npmrc 2>&1 | indent
fi
...
...
test/run
View file @
cc9339a1
...
...
@@ -201,7 +201,11 @@ testBuildWithUserCacheDirectoriesCamel() {
}
testModulesCheckedIn
()
{
compile
"modules-checked-in"
cache
=
$(
mktmpdir
)
compile
"modules-checked-in"
$cache
assertCapturedSuccess
compile
"modules-checked-in"
$cache
assertCaptured
"node_modules source: prebuilt"
assertCaptured
"Rebuilding any native modules for this architecture"
assertCaptured
"(preinstall script)"
...
...
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