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

Add a CI check to ensure Cargo.lock file remains up-to-date #597

Merged
merged 2 commits into from
Sep 8, 2022

Conversation

mitchmindtree
Copy link
Contributor

This adds a new CI "cargo-verification" check to ensure the Cargo.lock file is valid for the current state of all manifests within the workspace. This avoids having Cargo.lock files changes leak into unrelated PRs, and allows tools like Nix to always have a valid lock file present at each published release to ensure reproducible builds.

This adds a new CI "cargo-verification" check to ensure the `Cargo.lock`
file is valid for the current state of all manifests within the
workspace. This avoids having `Cargo.lock` files changes leak into
unrelated PRs, and allows tools like Nix to always have a valid lock
file present at each published release to ensure reproducible builds.
@mitchmindtree mitchmindtree self-assigned this Sep 8, 2022
@mitchmindtree mitchmindtree requested a review from a team September 8, 2022 13:21
@mitchmindtree mitchmindtree marked this pull request as ready for review September 8, 2022 13:21
Copy link
Member

@Dentosal Dentosal left a comment

Choose a reason for hiding this comment

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

Cargo docs specifically say that this is a good idea: https://doc.rust-lang.org/cargo/commands/cargo-check.html#manifest-options

@mitchmindtree mitchmindtree merged commit 5f35286 into master Sep 8, 2022
@mitchmindtree mitchmindtree deleted the mitchmindtree/ci-check-lock-file branch September 8, 2022 13:54
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.

2 participants