Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require Cargo.lock matches Cargo.toml in CI (#153)
This passes `--locked` to the first interesting cargo invocation, 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, the 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.)
- Loading branch information