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 commit from cargo lock file for git repositories #2490

Merged
merged 4 commits into from
Feb 18, 2024

Conversation

cameron-martin
Copy link
Contributor

Previously the cargo bazel lock file would be created with the branch or tag in the cargo lock file, rather than using the pinned commit. This would result in non-reproducible builds. This makes the pinned commit preferred, falling back to the branch or tag if this doesn't exist.

Fixes #2073

Previously the cargo bazel lock file would be created with the branch or tag in the cargo lock file, rather than using the pinned commit. This would result in non-reproducible builds. This makes the pinned commit preferred, falling back to the branch or tag if this doesn't exist.

Fixes bazelbuild#2073
Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

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

Nice! Thank you so much!

@UebelAndre UebelAndre enabled auto-merge (squash) February 18, 2024 17:44
@UebelAndre UebelAndre merged commit d061e6a into bazelbuild:main Feb 18, 2024
3 checks passed
@cameron-martin cameron-martin deleted the pin-git-commits branch February 18, 2024 18:49
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.

crates_repository() doesn't resolve tags to commits when creating the Cargo.Bazel.lock
2 participants