Skip to content

Commit 8646f58

Browse files
committed
Use lockfile when installing cargo-wix in CI
When installing a package using `cargo install`, by default it ignores the lockfile for that package and installs the latest relevant dependency versions. This can be overridden by using the `--locked` flag. Using an unlocked install is causing issues in CI, because we have our Rust version pinned to a version that is older than the MSRV for some of `cargo-wix`'s dependencies. Switching to a locked install means that the dependency versions will be repeatable and so we shouldn't have issues with Rust version mismatches.
1 parent b5bfec7 commit 8646f58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
with:
8585
rustflags: ""
8686
- name: Add cargo-wix subcommand
87-
run: cargo install cargo-wix
87+
run: cargo install --locked cargo-wix
8888
- name: Compile and package installer
8989
run: |
9090
cargo wix --nocapture --package volta --output target\wix\volta-windows.msi
@@ -114,7 +114,7 @@ jobs:
114114
target: aarch64-pc-windows-msvc
115115
rustflags: ""
116116
- name: Add cargo-wix subcommand
117-
run: cargo install cargo-wix
117+
run: cargo install --locked cargo-wix
118118
- name: Compile and package installer
119119
run: |
120120
cargo wix --nocapture --package volta --target aarch64-pc-windows-msvc --output target\wix\volta-windows-arm.msi

0 commit comments

Comments
 (0)