Skip to content

Commit 01f8cb1

Browse files
committed
fix: always run cargo install
cargo install already skips the installation if the tool is the newest version and updates otherwise.
1 parent 9d56fc1 commit 01f8cb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ build target=default-target:
4444
guests: build-and-move-rust-guests build-and-move-c-guests
4545

4646
ensure-cargo-hyperlight:
47-
{{ if os() == "windows" { "if (-not (Get-Command cargo-hyperlight -ErrorAction SilentlyContinue)) { cargo install --locked cargo-hyperlight }" } else { "command -v cargo-hyperlight >/dev/null 2>&1 || cargo install --locked cargo-hyperlight" } }}
47+
cargo install --locked cargo-hyperlight
4848

4949
witguest-wit:
50-
{{ if os() == "windows" { "if (-not (Get-Command wasm-tools -ErrorAction SilentlyContinue)) { cargo install --locked wasm-tools }" } else { "command -v wasm-tools >/dev/null 2>&1 || cargo install --locked wasm-tools" } }}
50+
cargo install --locked wasm-tools
5151
cd src/tests/rust_guests/witguest && wasm-tools component wit guest.wit -w -o interface.wasm
5252
cd src/tests/rust_guests/witguest && wasm-tools component wit two_worlds.wit -w -o twoworlds.wasm
5353

0 commit comments

Comments
 (0)