From 67c3d38a0326507f4735edd315af68456e4c5068 Mon Sep 17 00:00:00 2001 From: Owen Jacobson <owen@heroku.com> Date: Wed, 7 Oct 2015 18:28:11 -0400 Subject: [PATCH] Preserve original build directory (including previously-installed programs) when moving app to /app during build. This means that binaries installed in $BUILD_DIR/.heroku/node (let's say) will remain available during build, at the paths previous buildpacks established. --- bin/compile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 1ef70c62..ec97a25e 100755 --- a/bin/compile +++ b/bin/compile @@ -83,7 +83,7 @@ if [[ ! "$DOCKER_BUILD" ]]; then # Copy Application code in. bpwatch start appdir_stage - deep-mv $BUILD_DIR $APP_DIR + deep-cp $BUILD_DIR $APP_DIR bpwatch stop appdir_stage fi @@ -218,6 +218,7 @@ bpwatch stop dump_cache if [[ ! "$DOCKER_BUILD" ]]; then bpwatch start appdir_commit + rm -rf $ORIG_BUILD_DIR deep-mv $BUILD_DIR $ORIG_BUILD_DIR bpwatch stop appdir_commit -- GitLab