Skip to content

Commit 6d4a906

Browse files
authored
Add locked flag to cargo install command (#6284)
Cargo ignores a crates `Cargo.lock` file unless the `--locked` flag is passes (http://github.com/rust-lang/cargo/issues/7169). We don't want transitive dependencies being updated in our CI, so explicitly specify `--locked`.
1 parent 5b93f5d commit 6d4a906

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ jobs:
289289
toolchain: ${{ matrix.rust_version }}
290290
components: rustfmt, clippy
291291
- name: 'Install cargo-raze'
292-
run: cargo install cargo-raze --version ${{ matrix.cargo_raze_version }}
292+
run: cargo install cargo-raze --version ${{ matrix.cargo_raze_version }} --locked
293293
- name: 'Run Rustfmt'
294294
run: (cd tensorboard/data/server/ && cargo fmt -- --check)
295295
- name: 'Run Clippy'
@@ -298,7 +298,6 @@ jobs:
298298
run: cargo clippy --all-targets --manifest-path tensorboard/data/server/Cargo.toml -- -D warnings
299299
- name: 'Check cargo-raze freshness'
300300
run: |
301-
mkdir -p /tmp/cargo-raze/doesnt/exist/
302301
rm -rf third_party/rust/
303302
(cd tensorboard/data/server/ && cargo fetch && cargo raze)
304303
git add .

0 commit comments

Comments
 (0)