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

feat: use sha in cache lock file, needed for source builds. #900

Merged
merged 4 commits into from
Oct 14, 2024

Conversation

tdejager
Copy link
Collaborator

Description

This PR adds the ability in the cache to use the sha256 of a key as the cache lock file as well.
This is needed so that source build archives with the same paths but different contents are correctly replaced in the cache.

Copy link
Collaborator

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice with all the tests! Left two small comments

crates/rattler_cache/src/package_cache/cache_lock.rs Outdated Show resolved Hide resolved
crates/rattler_cache/src/package_cache/cache_lock.rs Outdated Show resolved Hide resolved
@tdejager
Copy link
Collaborator Author

Ok just tested it out with pixi-build and seems to work like a charm.

@tdejager tdejager marked this pull request as ready for review October 14, 2024 07:57
@baszalmstra baszalmstra merged commit 7924428 into conda:feat/pixi-build Oct 14, 2024
14 of 15 checks passed
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