Skip to content

Commit 11df05b

Browse files
authored
fix(ci): Use locked version of Cargo CLI tools (#537)
## ๐ŸŽŸ๏ธ Tracking Cf. recent GitHub Actions checks failing, e.g. https://github.com/bitwarden/sdk-internal/actions/runs/18876687408/job/53868218878?pr=494#step:5:68 ## ๐Ÿ“” Objective A transitive dependency of llvm-cov was published 2025-10-23 that is incompatible with our current Rust version, 1.87. This adds the `--locked` flag so that the tool can successfully install. Also updates other CLI tools in this repo with locked versions.
1 parent 8ea5654 commit 11df05b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

โ€Ž.github/workflows/build-rust-crates.ymlโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
7171

7272
- name: Install cargo-release
73-
run: cargo install cargo-release
73+
run: cargo install cargo-release --version 0.25.20 --locked
7474

7575
- name: Cargo release dry run
7676
run: cargo-release release publish --no-publish -p bitwarden-api-api -p bitwarden-api-identity -p bitwarden

โ€Ž.github/workflows/build-wasm-internal.ymlโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
key: wasm-cargo-cache
9191

9292
- name: Install wasm-bindgen-cli
93-
run: cargo install wasm-bindgen-cli --version 0.2.100
93+
run: cargo install wasm-bindgen-cli --version 0.2.100 --locked
9494

9595
- name: Build
9696
run: ./build.sh -r ${{ matrix.license_type.build_flags }}

โ€Ž.github/workflows/publish-rust-crates.ymlโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
9999

100100
- name: Install cargo-release
101-
run: cargo install cargo-release
101+
run: cargo install cargo-release --version 0.25.20 --locked
102102

103103
- name: Create GitHub deployment
104104
if: ${{ inputs.release_type != 'Dry Run' }}

โ€Ž.github/workflows/rust-test.ymlโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
7575

7676
- name: Install wasm-bindgen-cli
77-
run: cargo install wasm-bindgen-cli --version 0.2.100
77+
run: cargo install wasm-bindgen-cli --version 0.2.100 --locked
7878

7979
- name: Test WASM
8080
run: cargo test --target wasm32-unknown-unknown -p bitwarden-wasm-internal -p bitwarden-threading -p bitwarden-error -p bitwarden-uuid --all-features
@@ -97,7 +97,7 @@ jobs:
9797
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
9898

9999
- name: Install cargo-llvm-cov
100-
run: cargo install cargo-llvm-cov --version 0.5.38
100+
run: cargo install cargo-llvm-cov --version 0.5.38 --locked
101101

102102
- name: Generate coverage
103103
run: cargo llvm-cov --all-features --lcov --output-path lcov.info --ignore-filename-regex "crates/bitwarden-api-"

0 commit comments

Comments
ย (0)