From adfb42495f11732319a0d078b5a58595e80aa9f3 Mon Sep 17 00:00:00 2001 From: Misha Zharov <8266317+mishazharov@users.noreply.github.com> Date: Thu, 4 Jan 2024 02:03:54 -0500 Subject: [PATCH] Add mirrors to external repositories (#1153) --- 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 f05529df3..f3bbe43a8 100644 --- a/toolchains/built_toolchains.bzl +++ b/toolchains/built_toolchains.bzl @@ -128,6 +128,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", ], ) @@ -140,6 +141,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", ], ) @@ -152,6 +154,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", ], ) @@ -171,7 +174,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": @@ -181,7 +187,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 @@ -208,6 +217,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", ], ) @@ -225,6 +235,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", ], ) @@ -246,6 +257,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", ], ) @@ -262,6 +274,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", ], ) @@ -282,6 +295,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