-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to cache invalidation (#133)
Now: - If the stack version file is missing, we don't assume the cached files belong to the current stack (since that could cause breakage), and instead invalidate the cache. (The cache actually offers little benefit in practice for this buildpack, so invalidating is cheap.) - The whole `${CACHE_DIR}/apt` directory is removed rather than only the `${CACHE_DIR}/apt/cache` directory. This ensures the APT indexes and other files from old stack versions are cleaned up too. - Some build output logs have been adjusted to be more accurate. - A test has been added for cache re-use, since it wasn't previously tested. These papercuts were noticed whilst working on: heroku/heroku-buildpack-chrome-for-testing#21
- Loading branch information
Showing
3 changed files
with
48 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters