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
6163a226
Commit
6163a226
authored
Dec 31, 2014
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unreliable bp version logic
parent
d89335ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
compile
bin/compile
+0
-7
No files found.
bin/compile
View file @
6163a226
...
...
@@ -30,9 +30,6 @@ export_env_dir $env_dir
####### Determine current state
# Which version of the buildpack did we use last time?
bp_previous
=
$(
file_contents
"
$cache_dir
/node/bp-version"
)
# What's the requested semver range for node?
node_engine
=
$(
package_json
".engines.node"
)
node_previous
=
$(
file_contents
"
$cache_dir
/node/node-version"
)
...
...
@@ -123,9 +120,6 @@ elif [ "$node_previous" != "" ] && [ "$node_engine" != "$node_previous" ]; then
elif
[
"
$npm_previous
"
!=
""
]
&&
[
"
$npm_engine
"
!=
"
$npm_previous
"
]
;
then
info
"Npm version changed (
$npm_previous
=>
$npm_engine
); invalidating cache"
use_cache
=
false
elif
[
"
$bp_version
"
!=
"
$bp_previous
"
]
;
then
info
"New buildpack version (
$bp_version
); invalidating cache"
use_cache
=
false
else
use_cache
=
true
fi
...
...
@@ -201,7 +195,6 @@ mkdir -p $cache_dir/node
echo
$node_engine
>
$cache_dir
/node/node-version
echo
$npm_engine
>
$cache_dir
/node/npm-version
echo
$bp_version
>
$cache_dir
/node/bp-version
if
test
-d
$build_dir
/node_modules
;
then
info
"Caching node_modules for future builds"
...
...
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