From ab48626382239ceba144c4e6f676675a3e023571 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Sun, 26 May 2024 00:44:33 +0800 Subject: [PATCH] fix: cargo index fetch bug - ref: https://github.com/rust-lang/cargo/issues/10303 --- Cross.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cross.toml b/Cross.toml index 1df796f6477d..3a344fd484e8 100644 --- a/Cross.toml +++ b/Cross.toml @@ -3,7 +3,7 @@ pre-build = [ # https://aws.github.io/aws-lc-rs/requirements/linux.html "apt-get update", "apt-get install --assume-yes libclang1 cargo", - "cargo install --force --locked bindgen-cli", + "CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install --force --locked bindgen-cli", ] [build.env] @@ -14,7 +14,7 @@ pre-build = [ # Install NASM for rustls, which deps on aws-lc-rs by default, and it needs NASM "apt-get update", "apt-get install --assume-yes libclang1 nasm cargo", - "cargo install --force --locked bindgen-cli", + "CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install --force --locked bindgen-cli", ] [target.aarch64-unknown-linux-gnu]