Use --locked in cargo build and lint invocations (#21602)

This ensures CI fails if the committed lockfile is outdated
This commit is contained in:
Zanie Blue
2026-05-07 23:14:18 +00:00
committed by GitHub
parent 893038f77c
commit 79154e6952
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -445,7 +445,7 @@ jobs:
cargo chef cook --recipe-path "$RECIPE" --target ${{ matrix.target }} --release
- name: cargo clippy
run: cargo clippy --target ${{ matrix.target }} --tests --profile ${{ matrix.profile }} --timings -- -D warnings
run: cargo clippy --target ${{ matrix.target }} --tests --profile ${{ matrix.profile }} --timings --locked -- -D warnings
- name: Upload Cargo timings (clippy)
if: always()