From b95ae1b223ad265d1a089311f6c5d2c0e6bbd4e1 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 16 Jan 2023 19:45:56 +0900 Subject: [PATCH] Set CARGO_NET_RETRY and RUSTUP_MAX_RETRIES --- main.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.sh b/main.sh index 9a2386e9..db58056c 100755 --- a/main.sh +++ b/main.sh @@ -311,6 +311,11 @@ sys_install() { esac } +# cargo-binstall may call `cargo install` on their fallback: https://github.com/taiki-e/install-action/pull/54#issuecomment-1383140833 +# cross calls rustup on `cross --version` if the current directly is cargo workspace. +export CARGO_NET_RETRY=10 +export RUSTUP_MAX_RETRIES=10 + if [[ $# -gt 0 ]]; then bail "invalid argument '$1'" fi