Skip to content

Commit 46a2bec

Browse files
philwoittaiz
authored andcommitted
Mirror all http_archives. (#878)
Context: bazelbuild/bazel#10270
1 parent 26cf9b7 commit 46a2bec

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scala/private/macros/scala_repositories.bzl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ def scala_repositories(
136136
sha256 = "d82eb0141ad18e98de47ed7ed415daabead6d5d1bef1b8cccb6aa4d108a9008f",
137137
strip_prefix = "protobuf-b4f193788c9f0f05d7e0879ea96cd738630e5d51",
138138
# Commit from 2019-05-15, update to protobuf 3.8 when available.
139-
url = "https://github.com/protocolbuffers/protobuf/archive/b4f193788c9f0f05d7e0879ea96cd738630e5d51.tar.gz",
139+
urls = [
140+
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/b4f193788c9f0f05d7e0879ea96cd738630e5d51.tar.gz",
141+
"https://github.com/protocolbuffers/protobuf/archive/b4f193788c9f0f05d7e0879ea96cd738630e5d51.tar.gz",
142+
],
140143
)
141144

142145
if not native.existing_rule("zlib"): # needed by com_google_protobuf
@@ -145,7 +148,10 @@ def scala_repositories(
145148
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
146149
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
147150
strip_prefix = "zlib-1.2.11",
148-
urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
151+
urls = [
152+
"https://mirror.bazel.build/zlib.net/zlib-1.2.11.tar.gz",
153+
"https://zlib.net/zlib-1.2.11.tar.gz",
154+
],
149155
)
150156

151157
native.bind(

0 commit comments

Comments
 (0)