Pass --locked to cargo-binstall

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.
This commit is contained in:
Jiahao XU
2023-05-29 13:21:37 +10:00
committed by Taiki Endo
parent b1b01a6e03
commit 81635a4e23

View File

@@ -583,5 +583,5 @@ if [[ ${#unsupported_tools[@]} -gt 0 ]]; then
# By default, cargo-binstall enforce downloads over secure transports only. # By default, cargo-binstall enforce downloads over secure transports only.
# As a result, http will be disabled, and it will also set # As a result, http will be disabled, and it will also set
# min tls version to be 1.2 # min tls version to be 1.2
cargo binstall --force --no-confirm "${unsupported_tools[@]}" cargo binstall --force --no-confirm --locked "${unsupported_tools[@]}"
fi fi