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

Require Cargo.lock matches Cargo.toml in CI #19938

Merged
merged 2 commits into from
Sep 27, 2023
Merged

Require Cargo.lock matches Cargo.toml in CI #19938

merged 2 commits into from
Sep 27, 2023

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Sep 26, 2023

This passes --locked to the first interesting cargo invocations, to ensure that the Cargo.lock file is up to date with Cargo.toml. Without this, if there's been changes to Cargo.toml and the user hasn't run a cargo command locally afterwards, those invocation might change the Cargo.lock file (e.g. bump versions, add packages) and thus CI runs with an unexpected configuration, that's not recorded in the repo.

(This came up in pantsbuild/scie-pants#290 and I thought to check other Rust repos that are tangentially related.)

@huonw huonw added the category:internal CI, fixes for not-yet-released features, etc. label Sep 26, 2023
@huonw huonw marked this pull request as ready for review September 26, 2023 11:31
@huonw huonw merged commit 62800fa into main Sep 27, 2023
24 checks passed
@huonw huonw deleted the huonw/cargo-locked branch September 27, 2023 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants