Commit 3678c3b9 authored by Ed Morley's avatar Ed Morley Committed by Jeremy Morrell

Mention 'stack' in the cache invalidation message (#570)

The "Cached directories were not restored" message now includes the stack version in the list of possible reasons.
parent 265be51d
...@@ -167,11 +167,11 @@ restore_cache() { ...@@ -167,11 +167,11 @@ restore_cache() {
elif [[ "$cache_status" == "new-signature" ]]; then elif [[ "$cache_status" == "new-signature" ]]; then
header "Restoring cache" header "Restoring cache"
if [[ "$cache_directories" == "" ]]; then if [[ "$cache_directories" == "" ]]; then
echo "Cached directories were not restored because of a change in versions of node, npm, or yarn" echo "Cached directories were not restored due to a change in version of node, npm, yarn or stack"
echo "Module installation may take longer for this build" echo "Module installation may take longer for this build"
else else
# If the user has specified custom cache directories, be more explicit # If the user has specified custom cache directories, be more explicit
echo "Invalidating cache due to a change in node, npm, or yarn versions" echo "Invalidating cache due to a change in version of node, npm, yarn or stack"
echo "Will not restore the following directories for this build:" echo "Will not restore the following directories for this build:"
for directory in $(< $cache_directories); do for directory in $(< $cache_directories); do
echo " $directory" echo " $directory"
......
...@@ -118,7 +118,7 @@ testCacheWithPrebuild() { ...@@ -118,7 +118,7 @@ testCacheWithPrebuild() {
assertCapturedSuccess assertCapturedSuccess
compile "cache-prebuild" $cache $env_dir compile "cache-prebuild" $cache $env_dir
assertCaptured "Cached directories were not restored because of a change in versions of node" assertCaptured "Cached directories were not restored due to a change in version of node"
assertCapturedSuccess assertCapturedSuccess
} }
...@@ -459,7 +459,7 @@ testSignatureInvalidation() { ...@@ -459,7 +459,7 @@ testSignatureInvalidation() {
compile "node-0.12.7" $cache compile "node-0.12.7" $cache
assertCaptured "Downloading and installing node 0.12.7" assertCaptured "Downloading and installing node 0.12.7"
assertCaptured "Cached directories were not restored because of a change in versions of node" assertCaptured "Cached directories were not restored due to a change in version of node"
assertCapturedSuccess assertCapturedSuccess
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment