Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use per-checkout cache directories for builds #1050

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

bcressey
Copy link
Contributor

Issue number:
N/A

Description of changes:
Use the partial hash of the directory path to isolate cache layers from different checkouts.

Testing done:
Verified that the two cache directories used in a package build had the expected token in the .${PACKAGE}.${ARCH}.${VARIANT}.${TOKEN} file from the cache layer.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

The cache directory is primarily used by cargo, and having two cargo
commands writing build artifacts to the same location will lead to
unpredictable results.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
@bcressey bcressey merged commit 23a20e5 into bottlerocket-os:develop Aug 20, 2020
@bcressey bcressey deleted the per-checkout-cache branch August 20, 2020 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants