Skip to content

fix(ci): add --locked to cargo install#548

Merged
iamquang95 merged 1 commit into
mainfrom
feat/deny-lock
Jul 15, 2026
Merged

fix(ci): add --locked to cargo install#548
iamquang95 merged 1 commit into
mainfrom
feat/deny-lock

Conversation

@iamquang95

Copy link
Copy Markdown
Collaborator

Changes

Add --locked to every cargo install invocation across all CI workflows.

Reason

cargo install <tool>@<ver> without --locked re-resolves the tool's dependency tree to the newest semver-compatible versions at install time, ignoring the Cargo.lock its maintainers shipped and tested. For cargo-deny@0.19.0 this pulls in kstring@2.0.3 (MSRV 1.96.0), which fails to build on the toolchain pinned to 1.95.0 in rust-toolchain.toml — breaking the dependency-audit workflow.

--locked forces cargo to use each tool's bundled lockfile — the versions vetted against that tool's own MSRV — so no MSRV-exceeding transitive upgrade sneaks in. Applying it to every cargo install (not just the one that broke) hardens the rest against the same latent hazard and is standard practice for reproducible CI.

@iamquang95 iamquang95 merged commit 74e1eee into main Jul 15, 2026
13 checks passed
@iamquang95 iamquang95 deleted the feat/deny-lock branch July 15, 2026 13:48
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