Skip to content

Commit

Permalink
Fix ic-wasm action failing on wrong version (#2604)
Browse files Browse the repository at this point in the history
If `ic-wasm` is not detected properly (this was encountered when caching
actions became unreliable due to hitting the rate limit), then the
bootstrap script attempts to install the right version. However, if cargo
is not aware that a binary already exists, it will then fail.
By using `--force` we allow the script to continue an override the
existing binary.
  • Loading branch information
frederikrothenberger authored Sep 11, 2024
1 parent 33e58d6 commit f4a3980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ echo "looking for ic-wasm 0.8.5"
if [[ ! "$(command -v ic-wasm)" || "$(ic-wasm --version)" != "ic-wasm 0.8.5" ]]
then
echo "installing ic-wasm 0.8.5"
run cargo install ic-wasm --version 0.8.5
run cargo install ic-wasm --version 0.8.5 --force
fi

# make sure the packages are actually installed (rustup waits for the first invoke to lazyload)
Expand Down

0 comments on commit f4a3980

Please sign in to comment.