From 81635a4e233c14fe6dcfd8e3150c82d8e7a44c5f Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 29 May 2023 13:21:37 +1000 Subject: [PATCH] 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. --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 9742e663..2bec4df8 100755 --- a/main.sh +++ b/main.sh @@ -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