Skip to content

Commit 1861e86

Browse files
committed
Remove old buildpack cache dir used for apt-get
1 parent c9a2a1f commit 1861e86

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/compile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ detect_and_install_nodejs "${BUILD_DIR}"
4343
# shim will not interfere.
4444
mkdir -p "${BUILD_DIR}/.heroku/bin"
4545
cp "${BP_DIR}/opt/rlwrap" "${BUILD_DIR}/.heroku/bin/rlwrap"
46-
chmod +x "${BUILD_DIR}/.heroku/bin/rlwrap"
46+
47+
# To ensure the cache created by older Clojure buildpack versions doesn't stay around indefinitely, we explicitly
48+
# delete these old directories. This will speed up subsequent app builds since it will take less time to restore
49+
# the cache before each build.
50+
rm -rf "${CACHE_DIR}/clojure-bp-apt"
4751

4852
# Run clojure install script (clojure / clj may be needed from leiningen for newer cli tools)
4953
CLOJURE_CLI_VERSION="${CLOJURE_CLI_VERSION:-1.10.0.411}"

0 commit comments

Comments
 (0)