From 8ca3ff06ede92684cd426ef25a7d77f2e774368f Mon Sep 17 00:00:00 2001 From: Misha Zharov Date: Thu, 4 Jan 2024 00:00:11 -0500 Subject: [PATCH] Add mirrors to external repositories --- toolchains/built_toolchains.bzl | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/toolchains/built_toolchains.bzl b/toolchains/built_toolchains.bzl index 237978296..9eb67d90a 100644 --- a/toolchains/built_toolchains.bzl +++ b/toolchains/built_toolchains.bzl @@ -125,6 +125,7 @@ def _ninja_toolchain(version, register_toolchains): sha256 = "31747ae633213f1eda3842686f83c2aa1412e0f5691d1c14dbbcc67fe7400cea", strip_prefix = "ninja-1.11.1", urls = [ + "https://mirror.bazel.build/github.com/ninja-build/ninja/archive/v1.11.1.tar.gz", "https://github.com/ninja-build/ninja/archive/v1.11.1.tar.gz", ], ) @@ -137,6 +138,7 @@ def _ninja_toolchain(version, register_toolchains): sha256 = "3c6ba2e66400fe3f1ae83deb4b235faf3137ec20bd5b08c29bfc368db143e4c6", strip_prefix = "ninja-1.11.0", urls = [ + "https://mirror.bazel.build/github.com/ninja-build/ninja/archive/v1.11.0.tar.gz", "https://github.com/ninja-build/ninja/archive/v1.11.0.tar.gz", ], ) @@ -149,6 +151,7 @@ def _ninja_toolchain(version, register_toolchains): sha256 = "ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed", strip_prefix = "ninja-1.10.2", urls = [ + "https://mirror.bazel.build/github.com/ninja-build/ninja/archive/v1.10.2.tar.gz", "https://github.com/ninja-build/ninja/archive/v1.10.2.tar.gz", ], ) @@ -168,7 +171,10 @@ def _meson_toolchain(version, register_toolchains): build_file_content = _MESON_BUILD_FILE_CONTENT, sha256 = "d04b541f97ca439fb82fab7d0d480988be4bd4e62563a5ca35fadb5400727b1c", strip_prefix = "meson-1.1.1", - url = "https://github.com/mesonbuild/meson/releases/download/1.1.1/meson-1.1.1.tar.gz", + urls = [ + "https://mirror.bazel.build/github.com/mesonbuild/meson/releases/download/1.1.1/meson-1.1.1.tar.gz", + "https://github.com/mesonbuild/meson/releases/download/1.1.1/meson-1.1.1.tar.gz", + ], ) return if version == "0.63.0": @@ -178,7 +184,10 @@ def _meson_toolchain(version, register_toolchains): build_file_content = _MESON_BUILD_FILE_CONTENT, sha256 = "3b51d451744c2bc71838524ec8d96cd4f8c4793d5b8d5d0d0a9c8a4f7c94cd6f", strip_prefix = "meson-0.63.0", - url = "https://github.com/mesonbuild/meson/releases/download/0.63.0/meson-0.63.0.tar.gz", + urls = [ + "https://mirror.bazel.build/github.com/mesonbuild/meson/releases/download/0.63.0/meson-0.63.0.tar.gz", + "https://github.com/mesonbuild/meson/releases/download/0.63.0/meson-0.63.0.tar.gz", + ], ) return @@ -205,6 +214,7 @@ cc_import( ''', sha256 = "bdf18506df304d38be98a4b3f18055b8b8cca81beabecad0eece6ce95319c369", urls = [ + "https://mirror.bazel.build/download.gnome.org/binaries/win64/glib/2.26/glib-dev_2.26.1-1_win64.zip", "https://download.gnome.org/binaries/win64/glib/2.26/glib-dev_2.26.1-1_win64.zip", ], ) @@ -222,6 +232,7 @@ cc_import( sha256 = "bc96f63112823b7d6c9f06572d2ad626ddac7eb452c04d762592197f6e07898e", strip_prefix = "glib-2.26.1", urls = [ + "https://mirror.bazel.build/download.gnome.org/sources/glib/2.26/glib-2.26.1.tar.gz", "https://download.gnome.org/sources/glib/2.26/glib-2.26.1.tar.gz", ], ) @@ -243,6 +254,7 @@ exports_files( ''', sha256 = "88d857087e86f16a9be651ee7021880b3f7ba050d34a1ed9f06113b8799cb973", urls = [ + "https://mirror.bazel.build/download.gnome.org/binaries/win64/glib/2.26/glib_2.26.1-1_win64.zip", "https://download.gnome.org/binaries/win64/glib/2.26/glib_2.26.1-1_win64.zip", ], ) @@ -259,6 +271,7 @@ cc_import( ''', sha256 = "1f4269c0e021076d60a54e98da6f978a3195013f6de21674ba0edbc339c5b079", urls = [ + "https://mirror.bazel.build/download.gnome.org/binaries/win64/dependencies/gettext-runtime_0.18.1.1-2_win64.zip", "https://download.gnome.org/binaries/win64/dependencies/gettext-runtime_0.18.1.1-2_win64.zip", ], ) @@ -279,6 +292,7 @@ cc_import( ], urls = [ "https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz", + "https://mirror.bazel.build/pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz", ], ) return