Skip to content

Commit

Permalink
Pass --locked to cargo-binstall
Browse files Browse the repository at this point in the history
So that if taiki-e/install-action fallback to cargo-install, it will use the lockfile instead of latest version for every dep to ensure the compilation succeeds.
  • Loading branch information
NobodyXu authored and taiki-e committed May 29, 2023
1 parent b1b01a6 commit 81635a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ if [[ ${#unsupported_tools[@]} -gt 0 ]]; then
# By default, cargo-binstall enforce downloads over secure transports only.
# As a result, http will be disabled, and it will also set
# min tls version to be 1.2
cargo binstall --force --no-confirm "${unsupported_tools[@]}"
cargo binstall --force --no-confirm --locked "${unsupported_tools[@]}"
fi

0 comments on commit 81635a4

Please sign in to comment.