Skip to content

Commit b941ed3

Browse files
authored
Mirror all http_archives in third_party_repositories.bzl.
Context: bazelbuild/bazel#10270
1 parent 6531168 commit b941ed3

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

closure/repositories.bzl

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ def bazel_skylib():
238238
http_archive(
239239
name = "bazel_skylib",
240240
sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e",
241-
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/bazel-skylib.0.8.0.tar.gz"],
241+
urls = [
242+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/bazel-skylib.0.8.0.tar.gz",
243+
"https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/bazel-skylib.0.8.0.tar.gz",
244+
],
242245
)
243246

244247
def clang():
@@ -929,6 +932,7 @@ def org_apache_tomcat_annotations_api():
929932
name = "org_apache_tomcat_annotations_api",
930933
licenses = ["notice"], # Apache License, Version 2.0
931934
jar_urls = [
935+
"https://mirror.bazel.build/repo1.maven.org/maven2/org/apache/tomcat/tomcat-annotations-api/8.0.5/tomcat-annotations-api-8.0.5.jar",
932936
"http://maven.ibiblio.org/maven2/org/apache/tomcat/tomcat-annotations-api/8.0.5/tomcat-annotations-api-8.0.5.jar",
933937
"http://repo1.maven.org/maven2/org/apache/tomcat/tomcat-annotations-api/8.0.5/tomcat-annotations-api-8.0.5.jar",
934938
],
@@ -1043,31 +1047,43 @@ def rules_cc():
10431047
name = "rules_cc",
10441048
sha256 = "29daf0159f0cf552fcff60b49d8bcd4f08f08506d2da6e41b07058ec50cfeaec",
10451049
strip_prefix = "rules_cc-b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e",
1046-
urls = ["https://github.com/bazelbuild/rules_cc/archive/b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e.tar.gz"],
1050+
urls = [
1051+
"https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e.tar.gz",
1052+
"https://github.com/bazelbuild/rules_cc/archive/b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e.tar.gz",
1053+
],
10471054
)
10481055

10491056
def rules_java():
10501057
http_archive(
10511058
name = "rules_java",
10521059
sha256 = "f5a3e477e579231fca27bf202bb0e8fbe4fc6339d63b38ccb87c2760b533d1c3",
10531060
strip_prefix = "rules_java-981f06c3d2bd10225e85209904090eb7b5fb26bd",
1054-
urls = ["https://github.com/bazelbuild/rules_java/archive/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz"],
1061+
urls = [
1062+
"https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz",
1063+
"https://github.com/bazelbuild/rules_java/archive/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz",
1064+
],
10551065
)
10561066

10571067
def rules_proto():
10581068
http_archive(
10591069
name = "rules_proto",
10601070
sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
10611071
strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
1062-
urls = ["https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz"],
1072+
urls = [
1073+
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
1074+
"https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
1075+
],
10631076
)
10641077

10651078
def rules_python():
10661079
http_archive(
10671080
name = "rules_python",
10681081
sha256 = "e5470e92a18aa51830db99a4d9c492cc613761d5bdb7131c04bd92b9834380f6",
10691082
strip_prefix = "rules_python-4b84ad270387a7c439ebdccfd530e2339601ef27",
1070-
urls = ["https://github.com/bazelbuild/rules_python/archive/4b84ad270387a7c439ebdccfd530e2339601ef27.tar.gz"],
1083+
urls = [
1084+
"https://mirror.bazel.build/github.com/bazelbuild/rules_python/archive/4b84ad270387a7c439ebdccfd530e2339601ef27.tar.gz",
1085+
"https://github.com/bazelbuild/rules_python/archive/4b84ad270387a7c439ebdccfd530e2339601ef27.tar.gz",
1086+
],
10711087
)
10721088

10731089
def zlib():
@@ -1076,5 +1092,8 @@ def zlib():
10761092
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
10771093
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
10781094
strip_prefix = "zlib-1.2.11",
1079-
urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
1095+
urls = [
1096+
"https://mirror.bazel.build/zlib.net/zlib-1.2.11.tar.gz",
1097+
"https://zlib.net/zlib-1.2.11.tar.gz",
1098+
],
10801099
)

0 commit comments

Comments
 (0)