From 9dbb9c7624d410c82ffd4788a271ed74b90ed9d5 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 26 Feb 2016 16:02:38 +0100 Subject: [PATCH] actually use node_modules for chaching --- b9/lib/prepare.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b9/lib/prepare.sh b/b9/lib/prepare.sh index 9ad6f860..25444fba 100644 --- a/b9/lib/prepare.sh +++ b/b9/lib/prepare.sh @@ -47,7 +47,7 @@ _b9_setup_node_modules() { local PACKAGE_FILE=$1 local PACKAGE_PATH=$(dirname $PACKAGE_FILE) local PACKAGE=$(cat $PACKAGE_FILE | jq 'del(.version)') - local GIT_HASH=$(git log --pretty=oneline -1 -- $PACKAGE_PATH | awk '{ print $1 }') + local GIT_HASH=$(git log --pretty=oneline -1 -- $PACKAGE_PATH/node_modules | awk '{ print $1 }') local PACKAGE_MD5=$(echo "$PACKAGE -- $GIT_HASH" | md5sum | awk '{print $1}') local CACHE_FILE="npm-${PACKAGE_MD5}.tar.xz" @@ -79,4 +79,4 @@ _b9_compile_node_modules() { gsutil cp $TMP_TAR gs://cloud9_ci_cache mv $TMP_TAR $TMP/$CACHE_FILE -} \ No newline at end of file +}