From b283e1751cc48b247d500cb5a642561d10651f16 Mon Sep 17 00:00:00 2001 From: will Date: Tue, 4 Aug 2026 21:07:41 +0100 Subject: [PATCH] ci: use mirror for riscv submodules sourceware is blocking/rate-limiting http(s) git requests to combat AI scrapers. Switch to a live mirror hosted at fish.foo Use exported GIT_CONFIG_* to avoid setting `git config --global` which could clobber a user running on bare host, but still propagate to child git processes spawned by `make`. --- ci/test/01_base_install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci/test/01_base_install.sh b/ci/test/01_base_install.sh index a2775902dd7..0c3dfc42447 100755 --- a/ci/test/01_base_install.sh +++ b/ci/test/01_base_install.sh @@ -88,8 +88,16 @@ if [[ -n "${USE_INSTRUMENTED_LIBCPP}" ]]; then fi if [[ ${BARE_METAL_RISCV} == "true" ]]; then + # Use a mirror for these submodules as sourceware blocks too many requests combating AI. ${CI_RETRY_EXE} git clone --depth=1 https://github.com/riscv-collab/riscv-gnu-toolchain -b 2026.06.06 /riscv/gcc ( cd /riscv/gcc; + export GIT_CONFIG_COUNT=3 + export GIT_CONFIG_KEY_0=url.https://git.fish.foo/mirrors/binutils-gdb.git.insteadOf + export GIT_CONFIG_VALUE_0=https://sourceware.org/git/binutils-gdb.git + export GIT_CONFIG_KEY_1=url.https://git.fish.foo/mirrors/glibc.git.insteadOf + export GIT_CONFIG_VALUE_1=https://sourceware.org/git/glibc.git + export GIT_CONFIG_KEY_2=url.https://git.fish.foo/mirrors/newlib-cygwin.git.insteadOf + export GIT_CONFIG_VALUE_2=https://sourceware.org/git/newlib-cygwin.git ./configure --prefix=/opt/riscv-ilp32 --with-arch=rv32gc --with-abi=ilp32 --disable-gdb; make "$MAKEJOBS"; ) rm -rf /riscv/gcc