@@ -27,6 +27,8 @@ http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "ht
2727
2828http_file = use_repo_rule ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_file" )
2929
30+ gcs_mirror = use_extension ("//bazel:gcs_mirror.bzl" , "gcs_mirror" )
31+
3032####################################################################################################
3133# aspect_rules_ts setup
3234####################################################################################################
@@ -584,19 +586,21 @@ PROTOC_BUILD_FILE_CONTENT = """
584586exports_files(["bin/protoc"], visibility = ["//visibility:public"])
585587"""
586588
587- http_archive (
589+ gcs_mirror . http_archive (
588590 name = "protoc_linux_x64" ,
589591 build_file_content = PROTOC_BUILD_FILE_CONTENT ,
590592 sha256 = "3a4c1e5f2516c639d3079b1586e703fc7bcfa2136d58bda24d1d54f949c315e8" ,
591593 url = "https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip" ,
592594)
595+ use_repo (gcs_mirror , "protoc_linux_x64" )
593596
594- http_archive (
597+ gcs_mirror . http_archive (
595598 name = "protoc_mac_x64" ,
596599 build_file_content = PROTOC_BUILD_FILE_CONTENT ,
597600 sha256 = "9448ff40278504a7ae5139bb70c962acc78c32d8fc54b4890a55c14c68b9d10a" ,
598601 url = "https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-osx-x86_64.zip" ,
599602)
603+ use_repo (gcs_mirror , "protoc_mac_x64" )
600604
601605####################################################################################################
602606# pgadapter.
@@ -618,7 +622,7 @@ filegroup(
618622# CockroachDB (used as an "emulator" for tests).
619623####################################################################################################
620624
621- http_archive (
625+ gcs_mirror . http_archive (
622626 name = "cockroachdb_linux" ,
623627 build_file_content = """
624628filegroup(
@@ -627,12 +631,11 @@ filegroup(
627631 visibility = ["//visibility:public"]
628632)
629633""" ,
630- # https://www.cockroachlabs.com/docs/v21.1/install-cockroachdb-linux does not currently
631- # provide SHA256 signatures. kjlubick@ downloaded this file and computed this sha256 signature.
632634 sha256 = "05293e76dfb6443790117b6c6c05b1152038b49c83bd4345589e15ced8717be3" ,
633635 strip_prefix = "cockroach-v21.1.9.linux-amd64" ,
634636 url = "https://binaries.cockroachdb.com/cockroach-v21.1.9.linux-amd64.tgz" ,
635637)
638+ use_repo (gcs_mirror , "cockroachdb_linux" )
636639
637640####################################################################################################
638641# bazel-toolchains rbe_configs_gen (prebuilt).
@@ -653,13 +656,15 @@ rbe_exec_properties = use_extension("//bazel/external:rbe_exec_properties.bzl",
653656rbe_exec_properties .setup (name = "exec_properties" )
654657use_repo (rbe_exec_properties , "exec_properties" )
655658
656- http_file (
659+ gcs_mirror . http_file (
657660 name = "rbe_configs_gen_linux_amd64" ,
658661 downloaded_file_path = "rbe_configs_gen" ,
659662 executable = True ,
663+ no_extension = True ,
660664 sha256 = "1206e8a79b41cb22524f73afa4f4ee648478f46ef6990d78e7cc953665a1db89" ,
661665 url = "https://github.com/bazelbuild/bazel-toolchains/releases/download/v5.1.2/rbe_configs_gen_linux_amd64" ,
662666)
667+ use_repo (gcs_mirror , "rbe_configs_gen_linux_amd64" )
663668
664669####################################################################################################
665670# Google Cloud SDK (needed for the Google Cloud Emulators).
0 commit comments