Commit 822fa14
authored
## Summary
Adds `--locked` to all three cargo invocations in `rust-ci-reusable.yml`
(`check`, `clippy`, `test`). The reusable is consumed estate-wide via
thin wrappers; this change fans out automatically.
## Why
`hyperpolymath/echidna` had five dependabot major-version bumps merge
2026-05-29 (axum 0.7→0.8, rand 0.9→0.10, criterion 0.5→0.8, nom 7→8,
rustyline 15→18) without paired code updates. Locally `cargo check
--locked` failed with "cannot update the lock file because --locked was
passed", proving the workspace needed something the lockfile couldn't
satisfy. CI lacked `--locked`, silently re-resolved to the newer
transitives, and broke compile on every push for ~24h until echidna#128
reverted.
## Effect
The next dependabot major bump that breaks compile fails at PR time —
where it's cheap to revert/fix — instead of merging green and breaking
everyone downstream.
## Caller-side considerations
- Repos that ship intentionally-stale lockfiles will see new CI
failures. Those repos should run `cargo update` and commit the fresh
lock; this is the correct "sync your lockfile to Cargo.toml" signal.
- Repos that don't ship `Cargo.lock` (libraries with no application
root) won't be affected — `--locked` is a no-op when there's nothing to
lock.
## Test plan
- [ ] CI: this PR's own rust-ci passes with the new `--locked`
constraint.
- [ ] After merge: monitor downstream rust-ci wrappers for first-time
`--locked` failures (those are the repos that need their lockfile
synced).
Closes #295.
1 parent fef9a0b commit 822fa14
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
139 | | - | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| |||
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
167 | | - | |
| 171 | + | |
| 172 | + | |
168 | 173 | | |
169 | 174 | | |
170 | 175 | | |
| |||
0 commit comments