blob: ba8a1bb6fa8e84d9c2273b737a916021fa171f5a [file] [log] [blame]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00001workspace(name = "io_bazel")
philwo75edd782019-01-29 05:02:44 -08002
cparsonsc08e4df2020-03-27 13:44:14 -07003load("//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
philwo17506af2020-01-28 04:20:39 -08004
5# These can be used as values for the patch_cmds and patch_cmds_win attributes
6# of http_archive, in order to export the WORKSPACE file from the BUILD or
7# BUILD.bazel file. This is useful for cases like //src:test_repos, where we
8# have to be able to trigger a fetch of a repo by depending on it, but we don't
9# actually want to build anything (so we can't depend on a target inside that
10# repo).
11EXPORT_WORKSPACE_IN_BUILD_FILE = [
12 "test -f BUILD && chmod u+w BUILD || true",
13 "echo >> BUILD",
14 "echo 'exports_files([\"WORKSPACE\"], visibility = [\"//visibility:public\"])' >> BUILD",
15]
16
17EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE = [
18 "test -f BUILD.bazel && chmod u+w BUILD.bazel || true",
19 "echo >> BUILD.bazel",
20 "echo 'exports_files([\"WORKSPACE\"], visibility = [\"//visibility:public\"])' >> BUILD.bazel",
21]
22
23EXPORT_WORKSPACE_IN_BUILD_FILE_WIN = [
24 "Add-Content -Path BUILD -Value \"`nexports_files([`\"WORKSPACE`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
25]
26
27EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN = [
28 "Add-Content -Path BUILD.bazel -Value \"`nexports_files([`\"WORKSPACE`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
29]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +000030
David Chenb78bbd52016-03-16 13:17:57 +000031# Protobuf expects an //external:python_headers label which would contain the
32# Python headers if fast Python protos is enabled. Since we are not using fast
33# Python protos, bind python_headers to a dummy target.
34bind(
35 name = "python_headers",
36 actual = "//:dummy",
37)
38
Alpha Lama1a79cb2016-05-15 19:13:52 +000039# Protobuf code generation for GRPC requires three external labels:
40# //external:grpc-java_plugin
41# //external:grpc-jar
42# //external:guava
43bind(
44 name = "grpc-java-plugin",
45 actual = "//third_party/grpc:grpc-java-plugin",
46)
47
48bind(
49 name = "grpc-jar",
50 actual = "//third_party/grpc:grpc-jar",
51)
52
53bind(
54 name = "guava",
55 actual = "//third_party:guava",
56)
57
Googler5b90b162017-08-31 16:29:34 +020058http_archive(
59 name = "bazel_j2objc",
iirinadcbad672019-07-17 04:45:21 -070060 # Computed using "shasum -a 256 j2objc-2.5.zip"
61 sha256 = "8d3403b5b7db57e347c943d214577f6879e5b175c2b59b7e075c0b6453330e9b",
62 strip_prefix = "j2objc-2.5",
hlopko6b06acc2019-03-25 04:40:10 -070063 urls = [
Jingwen Chen8d6eb832019-11-26 12:20:48 -080064 "https://mirror.bazel.build/github.com/google/j2objc/releases/download/2.5/j2objc-2.5.zip",
iirinadcbad672019-07-17 04:45:21 -070065 "https://github.com/google/j2objc/releases/download/2.5/j2objc-2.5.zip",
hlopko6b06acc2019-03-25 04:40:10 -070066 ],
Googler5b90b162017-08-31 16:29:34 +020067)
68
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020069# For src/test/shell/bazel:test_srcs
70load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
cushonb6646232018-09-07 01:44:10 -070071
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020072list_source_repository(name = "local_bazel_source_list")
73
Adam Michael9b7330f2017-03-23 18:40:51 +000074# To run the Android integration tests in //src/test/shell/bazel/android:all or
75# build the Android sample app in //examples/android/java/bazel:hello_world
76#
77# 1. Install an Android SDK and NDK from https://developer.android.com
78# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
79# 3. Uncomment the two lines below
80#
81# android_sdk_repository(name = "androidsdk")
82# android_ndk_repository(name = "androidndk")
Cal Peyser2152bc12016-04-22 17:08:59 +000083
Adam Michael8a136d82016-11-16 23:04:46 +000084# In order to run //src/test/shell/bazel:maven_skylark_test, follow the
85# instructions above for the Android integration tests and uncomment the
86# following lines:
87# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
88# maven_dependency_plugin()
89
gregceca48e9a2020-04-14 08:54:38 -070090# This allows rules written in Starlark to locate apple build tools.
philwo915fa8f2017-05-09 12:17:12 -040091bind(
92 name = "xcrunwrapper",
93 actual = "@bazel_tools//tools/objc:xcrunwrapper",
94)
Carmi Grushkobfaff292016-08-17 18:37:55 +000095
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080096http_archive(
Carmi Grushko0fd73d62017-02-17 06:49:40 +000097 name = "com_google_protobuf",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080098 patch_args = ["-p1"],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080099 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
100 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700101 patches = ["//third_party/protobuf:3.13.0.patch"],
102 sha256 = "9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a",
103 strip_prefix = "protobuf-3.13.0",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800104 urls = [
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700105 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
106 "https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800107 ],
Carmi Grushko0fd73d62017-02-17 06:49:40 +0000108)
109
brandjoncb4ba072019-08-01 12:41:43 -0700110# This is a mock version of bazelbuild/rules_python that contains only
111# @rules_python//python:defs.bzl. It is used by protobuf.
112# TODO(#9029): We could potentially replace this with the real @rules_python.
113new_local_repository(
114 name = "rules_python",
brandjoncb4ba072019-08-01 12:41:43 -0700115 build_file = "//third_party/rules_python:BUILD",
laurentlbaf265672019-10-22 10:06:21 -0700116 path = "./third_party/rules_python",
brandjoncb4ba072019-08-01 12:41:43 -0700117 workspace_file = "//third_party/rules_python:rules_python.WORKSPACE",
118)
119
John Cater2f838922018-11-12 08:19:03 -0800120local_repository(
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200121 name = "googleapis",
cushonb6646232018-09-07 01:44:10 -0700122 path = "./third_party/googleapis/",
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200123)
124
John Cater2f838922018-11-12 08:19:03 -0800125local_repository(
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700126 name = "remoteapis",
cushonb6646232018-09-07 01:44:10 -0700127 path = "./third_party/remoteapis/",
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700128)
129
kmbbfd89d62018-04-11 14:26:56 -0700130http_archive(
131 name = "desugar_jdk_libs",
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800132 # Commit e0b0291b2c51fbe5a7cfa14473a1ae850f94f021 of 2018-12-4
kmbbfd89d62018-04-11 14:26:56 -0700133 # Computed using "shasum -a 256 <zip>"
kmba9641252018-12-05 13:17:58 -0800134 sha256 = "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
135 strip_prefix = "desugar_jdk_libs-e0b0291b2c51fbe5a7cfa14473a1ae850f94f021",
philwof443d092019-01-08 11:11:09 -0800136 urls = [
philwo75edd782019-01-29 05:02:44 -0800137 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
138 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
139 ],
kmbbfd89d62018-04-11 14:26:56 -0700140)
141
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700142load("//:distdir.bzl", "distdir_tar")
cushonb6646232018-09-07 01:44:10 -0700143
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700144distdir_tar(
145 name = "additional_distfiles",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700146 # Keep in sync with the archives fetched as part of building bazel.
cparsons871cd6f2018-08-16 09:10:38 -0700147 archives = [
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800148 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
Ivo List4c6c9992020-09-23 09:25:05 -0700149 "java_tools_javac11_linux-v10.0.zip",
150 "java_tools_javac11_windows-v10.0.zip",
151 "java_tools_javac11_darwin-v10.0.zip",
Charles Mitae9d883f2020-10-01 06:00:50 -0700152 "coverage_output_generator-v2.5.zip",
wyv8062ca42020-05-25 00:21:00 -0700153 # bazelbuid/stardoc
154 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
155 # rules_sass
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800156 "1.25.0.zip",
wyv8062ca42020-05-25 00:21:00 -0700157 # rules_nodejs
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800158 "rules_nodejs-1.3.0.tar.gz",
Donald Chaib69e1e52020-08-03 12:34:17 -0700159 "android_tools_pkg-0.19.0rc3.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800160 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800161 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700162 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800163 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700164 # bazelbuild/rules_java
165 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700166 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800167 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700168 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700169 "bazel-toolchains-3.1.0.tar.gz",
iirinad26a3c12019-07-19 04:39:33 -0700170 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800171 "rules_pkg-0.2.4.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700172 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700173 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800174 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700175 "v3.13.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700176 # grpc/grpc
177 "v1.26.0.tar.gz",
178 # c-ares/c-ares
179 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
180 # protocolbuffers/upb
181 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700182 ],
cushonb6646232018-09-07 01:44:10 -0700183 dirname = "derived/distdir",
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700184 sha256 = {
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800185 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
Ivo List4c6c9992020-09-23 09:25:05 -0700186 "java_tools_javac11_linux-v10.0.zip": "69e65353c2cd65780abcbcce4daae973599298273b0f8b4d469eed822cb220d1",
187 "java_tools_javac11_windows-v10.0.zip": "d2f62af8daa0a3d55789b605f6582e37038329c64843337c71e64515468e55c4",
188 "java_tools_javac11_darwin-v10.0.zip": "64e5de2175dfccb96831573946b80d106edf3801d9db38b564514bf3581d466b",
Charles Mitae9d883f2020-10-01 06:00:50 -0700189 "coverage_output_generator-v2.5.zip": "cd14f1cb4559e4723e63b7e7b06d09fcc3bd7ba58d03f354cdff1439bd936a7d",
wyv8062ca42020-05-25 00:21:00 -0700190 # bazelbuild/stardoc
191 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz": "5a725b777976b77aa122b707d1b6f0f39b6020f66cd427bb111a585599c857b1",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800192 # rules_sass
193 "1.25.0.zip": "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
194 # rules_nodejs
195 "rules_nodejs-1.3.0.tar.gz": "b6670f9f43faa66e3009488bbd909bc7bc46a5a9661a33f6bc578068d1837f37",
Donald Chaib69e1e52020-08-03 12:34:17 -0700196 "android_tools_pkg-0.19.0rc3.tar.gz": "ea5c0589a01e2a9f43c20e5c145d3530e3b3bdbe7322789bc5da38d0ca49b837",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800197 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800198 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": "c00ceec469dbcf7929972e3c79f20c14033824538038a554952f5c31d8832f96",
hlopkoaaf64572019-06-14 02:33:56 -0700199 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800200 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700201 # bazelbuild/rules_java
202 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700203 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800204 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700205 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700206 "bazel-toolchains-3.1.0.tar.gz": "726b5423e1c7a3866a3a6d68e7123b4a955e9fcbe912a51e0f737e6dab1d0af2",
iirinad26a3c12019-07-19 04:39:33 -0700207 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800208 "rules_pkg-0.2.4.tar.gz": "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700209 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700210 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800211 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700212 "v3.13.0.tar.gz": "9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a",
Yun Penge2f11d72020-06-03 09:16:35 -0700213 # grpc/grpc
214 "v1.26.0.tar.gz": "2fcb7f1ab160d6fd3aaade64520be3e5446fc4c6fa7ba6581afdc4e26094bd81",
215 # c-ares/c-ares
216 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": "e8c2751ddc70fed9dc6f999acd92e232d5846f009ee1674f8aee81f19b2b915a",
217 # protocolbuffers/upb
218 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz": "61d0417abd60e65ed589c9deee7c124fe76a4106831f6ad39464e1525cef1454",
cushonb6646232018-09-07 01:44:10 -0700219 },
220 urls = {
hlopko6b06acc2019-03-25 04:40:10 -0700221 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": [
222 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
223 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
224 ],
Ivo List4c6c9992020-09-23 09:25:05 -0700225 "java_tools_javac11_linux-v10.0.zip": [
226 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_linux-v10.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700227 ],
Ivo List4c6c9992020-09-23 09:25:05 -0700228 "java_tools_javac11_windows-v10.0.zip": [
229 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_windows-v10.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700230 ],
Ivo List4c6c9992020-09-23 09:25:05 -0700231 "java_tools_javac11_darwin-v10.0.zip": [
232 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_darwin-v10.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700233 ],
Charles Mitae9d883f2020-10-01 06:00:50 -0700234 "coverage_output_generator-v2.5.zip": [
235 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.5.zip",
iirinaec2b0802019-04-09 10:43:48 -0700236 ],
wyv8062ca42020-05-25 00:21:00 -0700237 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz": [
wyv408be522020-05-26 02:14:23 -0700238 "https://mirror.bazel.build/github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
wyv8062ca42020-05-25 00:21:00 -0700239 "https://github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700240 ],
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800241 "1.25.0.zip": [
242 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
243 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700244 ],
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800245 "rules_nodejs-1.3.0.tar.gz": [
pcloudy4794b382020-04-22 02:11:13 -0700246 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz",
247 "https://github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700248 ],
Donald Chaib69e1e52020-08-03 12:34:17 -0700249 "android_tools_pkg-0.19.0rc3.tar.gz": [
250 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.19.0rc3.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700251 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800252 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800253 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": [
254 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
255 "https://github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800256 ],
hlopkoaaf64572019-06-14 02:33:56 -0700257 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800258 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
259 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
260 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700261 ],
iirinae8260492019-07-03 05:16:09 -0700262 # bazelbuild/rules_java
263 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700264 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinae8260492019-07-03 05:16:09 -0700265 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700266 ],
267 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800268 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": [
269 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
270 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700271 ],
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700272 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700273 "bazel-toolchains-3.1.0.tar.gz": [
274 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
John Caterf47f83e2020-05-04 05:16:00 -0700275 "https://github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700276 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700277 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800278 "rules_pkg-0.2.4.tar.gz": [
279 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
280 "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700281 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700282 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700283 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": [
284 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
285 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700286 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800287 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700288 "v3.13.0.tar.gz": [
289 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
290 "https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800291 ],
Yun Penge2f11d72020-06-03 09:16:35 -0700292 # grpc/grpc
293 "v1.26.0.tar.gz": [
294 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.26.0.tar.gz",
295 "https://github.com/grpc/grpc/archive/v1.26.0.tar.gz",
296 ],
297 # c-ares/c-ares
298 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": [
299 "https://mirror.bazel.build/github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
300 "https://github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
301 ],
302 # protocolbuffers/upb
303 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz": [
304 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
305 "https://github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
306 ],
cushonb6646232018-09-07 01:44:10 -0700307 },
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700308)
309
Philipp Wollermann95048272017-03-17 15:11:58 +0000310# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
311http_file(
312 name = "openjdk_linux",
philwo75edd782019-01-29 05:02:44 -0800313 downloaded_file_path = "zulu-linux.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800314 sha256 = "65bfe4e0ffa74a680ee4410db46b17e30cd9397b664a92a886599fe1f3530969",
315 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64-linux_x64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689070.tar.gz"],
Philipp Wollermann95048272017-03-17 15:11:58 +0000316)
317
Tobias Werth218e8f62018-12-13 04:44:35 -0800318http_file(
319 name = "openjdk_linux_vanilla",
philwo75edd782019-01-29 05:02:44 -0800320 downloaded_file_path = "zulu-linux-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800321 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
322 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
Tobias Werth218e8f62018-12-13 04:44:35 -0800323)
324
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800325http_file(
326 name = "openjdk_linux_minimal",
philwo75edd782019-01-29 05:02:44 -0800327 downloaded_file_path = "zulu-linux-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800328 sha256 = "91f7d52f695c681d4e21499b4319d548aadef249a6b3053e306308992e1e29ae",
329 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689068.tar.gz"],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800330)
331
Philipp Wollermann95048272017-03-17 15:11:58 +0000332http_file(
philwo9f7fe692019-06-27 06:53:12 -0700333 name = "openjdk_linux_aarch64",
334 downloaded_file_path = "zulu-linux-aarch64.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800335 sha256 = "6b245793087300db3ee82ab0d165614f193a73a60f2f011e347756c1e6ca5bac",
336 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581690750.tar.gz"],
philwo9f7fe692019-06-27 06:53:12 -0700337)
338
339http_file(
340 name = "openjdk_linux_aarch64_vanilla",
341 downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800342 sha256 = "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
343 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz"],
philwo9f7fe692019-06-27 06:53:12 -0700344)
345
346http_file(
347 name = "openjdk_linux_aarch64_minimal",
348 downloaded_file_path = "zulu-linux-aarch64-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800349 sha256 = "06f6520a877704c77614bcfc4f846cc7cbcbf5eaad149bf7f19f4f16e285c9de",
350 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581690750.tar.gz"],
philwo9f7fe692019-06-27 06:53:12 -0700351)
352
353http_file(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700354 name = "openjdk_linux_ppc64le_vanilla",
Ivo List4c6c9992020-09-23 09:25:05 -0700355 downloaded_file_path = "adoptopenjdk-ppc64le-vanilla.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700356 sha256 = "a417db0295b1f4b538ecbaf7c774f3a177fab9657a665940170936c0eca4e71a",
357 urls = [
philwo66d84ef2020-06-05 06:52:20 -0700358 "https://mirror.bazel.build/openjdk/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
359 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700360 ],
361)
362
363http_file(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700364 name = "openjdk_linux_s390x_vanilla",
Ivo List4c6c9992020-09-23 09:25:05 -0700365 downloaded_file_path = "adoptopenjdk-s390x-vanilla.tar.gz",
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700366 sha256 = "d9b72e87a1d3ebc0c9552f72ae5eb150fffc0298a7cb841f1ce7bfc70dcd1059",
367 urls = [
368 "https://mirror.bazel.build/github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz",
369 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz",
370 ],
371)
372
373http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000374 name = "openjdk_macos",
philwo75edd782019-01-29 05:02:44 -0800375 downloaded_file_path = "zulu-macos.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800376 sha256 = "8e283cfd23c7555be8e17295ed76eb8f00324c88ab904b8de37bbe08f90e569b",
377 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689066.tar.gz"],
Philipp Wollermann95048272017-03-17 15:11:58 +0000378)
379
380http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800381 name = "openjdk_macos_vanilla",
philwo75edd782019-01-29 05:02:44 -0800382 downloaded_file_path = "zulu-macos-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800383 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
384 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
Tobias Werth218e8f62018-12-13 04:44:35 -0800385)
386
387http_file(
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800388 name = "openjdk_macos_minimal",
philwo75edd782019-01-29 05:02:44 -0800389 downloaded_file_path = "zulu-macos-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800390 sha256 = "1bacb1c07035d4066d79f0b65b4ea0ebd1954f3662bdfe3618da382ac8fd23a6",
391 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689063.tar.gz"],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800392)
393
394http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000395 name = "openjdk_win",
philwo75edd782019-01-29 05:02:44 -0800396 downloaded_file_path = "zulu-win.zip",
philwo3ac4af42020-02-14 07:58:55 -0800397 sha256 = "8e1604b3a27dcf639bc6d1a73103f1211848139e4cceb081d0a74a99e1e6f995",
398 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689080.zip"],
Philipp Wollermann95048272017-03-17 15:11:58 +0000399)
Googler5f36bf82017-07-12 20:43:08 +0200400
Tobias Werth218e8f62018-12-13 04:44:35 -0800401http_file(
402 name = "openjdk_win_vanilla",
philwo75edd782019-01-29 05:02:44 -0800403 downloaded_file_path = "zulu-win-vanilla.zip",
philwo3ac4af42020-02-14 07:58:55 -0800404 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
405 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
Tobias Werth218e8f62018-12-13 04:44:35 -0800406)
407
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800408http_file(
409 name = "openjdk_win_minimal",
philwo75edd782019-01-29 05:02:44 -0800410 downloaded_file_path = "zulu-win-minimal.zip",
philwo3ac4af42020-02-14 07:58:55 -0800411 sha256 = "b90a713c9c2d9ea23cad44d2c2dfcc9af22faba9bde55dedc1c3bb9f556ac1ae",
412 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689080.zip"],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800413)
414
Googler5f36bf82017-07-12 20:43:08 +0200415http_archive(
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700416 name = "bazel_toolchains",
philwo17506af2020-01-28 04:20:39 -0800417 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
418 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
John Caterf47f83e2020-05-04 05:16:00 -0700419 sha256 = "726b5423e1c7a3866a3a6d68e7123b4a955e9fcbe912a51e0f737e6dab1d0af2",
420 strip_prefix = "bazel-toolchains-3.1.0",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700421 urls = [
philwob7d98432020-05-29 06:41:31 -0700422 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
John Caterf47f83e2020-05-04 05:16:00 -0700423 "https://github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700424 ],
Googler5f36bf82017-07-12 20:43:08 +0200425)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200426
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700427load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
428
429rbe_autoconfig(
430 name = "rbe_ubuntu1804_java11",
431 detect_java_home = True,
432 registry = "gcr.io",
philwo479857b2020-02-17 10:46:07 -0800433 repository = "bazel-public/ubuntu1804-bazel-java11",
434 tag = "latest",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700435)
436
437rbe_autoconfig(
438 name = "rbe_ubuntu1604_java8",
439 detect_java_home = True,
440 registry = "gcr.io",
philwo479857b2020-02-17 10:46:07 -0800441 repository = "bazel-public/ubuntu1604-bazel-java8",
442 tag = "latest",
Jakob Buchgraber3541ad62019-04-30 07:51:12 -0700443)
444
Googlerde0612a2019-03-07 06:06:55 -0800445# Creates toolchain configuration for remote execution with BuildKite CI
446# for rbe_ubuntu1604.
447# To run the tests with RBE on BuildKite CI uncomment the two lines below
448# load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
449# rbe_autoconfig(name = "buildkite_config")
450
ccalvarin8e9f4a82018-03-23 08:19:37 -0700451http_archive(
452 name = "com_google_googletest",
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700453 sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
454 strip_prefix = "googletest-release-1.10.0",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700455 urls = [
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700456 "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
457 "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700458 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700459)
460
cparsons871cd6f2018-08-16 09:10:38 -0700461http_archive(
462 name = "bazel_skylib",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800463 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
464 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800465 # Commit 2d4c9528e0f453b5950eeaeac11d8d09f5a504d4 of 2020-02-06
466 sha256 = "c00ceec469dbcf7929972e3c79f20c14033824538038a554952f5c31d8832f96",
467 strip_prefix = "bazel-skylib-2d4c9528e0f453b5950eeaeac11d8d09f5a504d4",
cparsons871cd6f2018-08-16 09:10:38 -0700468 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800469 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
470 "https://github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700471 ],
cparsons871cd6f2018-08-16 09:10:38 -0700472)
cparsonsa5be6612018-08-27 13:21:21 -0700473
wyv8062ca42020-05-25 00:21:00 -0700474# Note that stardoc depends on being called io_bazel_skydoc
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700475# to work without being patched, as it hard-codes this name in its sources.
wyv8062ca42020-05-25 00:21:00 -0700476# TODO(wyv): Is the above still true? Try a different name and see if it works.
477# If it does, can we rename the workspace in bazelbuild/stardoc?
cparsonsa5be6612018-08-27 13:21:21 -0700478http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700479 name = "io_bazel_skydoc",
wyv8062ca42020-05-25 00:21:00 -0700480 sha256 = "5a725b777976b77aa122b707d1b6f0f39b6020f66cd427bb111a585599c857b1",
481 strip_prefix = "stardoc-1ef781ced3b1443dca3ed05dec1989eca1a4e1cd",
wyv408be522020-05-26 02:14:23 -0700482 urls = [
483 "https://mirror.bazel.build/github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
484 "https://github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
485 ],
cparsonsa5be6612018-08-27 13:21:21 -0700486)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700487
oquenchil96068872019-07-08 07:01:39 -0700488http_archive(
489 name = "rules_cc",
philwo17506af2020-01-28 04:20:39 -0800490 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
491 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Marcel Hlopko02d19662019-11-11 21:55:16 -0800492 sha256 = "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
493 strip_prefix = "rules_cc-8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0",
oquenchil96068872019-07-08 07:01:39 -0700494 urls = [
Marcel Hlopko02d19662019-11-11 21:55:16 -0800495 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
496 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700497 ],
498)
499
iirinab815b792019-07-17 05:47:01 -0700500http_archive(
501 name = "rules_java",
philwo17506af2020-01-28 04:20:39 -0800502 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
503 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
iirinab815b792019-07-17 05:47:01 -0700504 sha256 = "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
iirinad26a3c12019-07-19 04:39:33 -0700505 strip_prefix = "rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178",
iirinab815b792019-07-17 05:47:01 -0700506 urls = [
iirinad26a3c12019-07-19 04:39:33 -0700507 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
508 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinab815b792019-07-17 05:47:01 -0700509 ],
iirinab815b792019-07-17 05:47:01 -0700510)
511
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700512http_archive(
513 name = "rules_proto",
philwo17506af2020-01-28 04:20:39 -0800514 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
515 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700516 sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
517 strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700518 urls = [
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700519 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
520 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700521 ],
522)
523
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700524# For testing, have an distdir_tar with all the archives implicit in every
525# WORKSPACE, to that they don't have to be refetched for every test
526# calling `bazel sync`.
527distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700528 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800529 archives = [
Ivo List4c6c9992020-09-23 09:25:05 -0700530 "java_tools_javac11_linux-v10.0.zip",
531 "java_tools_javac11_windows-v10.0.zip",
532 "java_tools_javac11_darwin-v10.0.zip",
Charles Mitae9d883f2020-10-01 06:00:50 -0700533 "coverage_output_generator-v2.5.zip",
philwo3ac4af42020-02-14 07:58:55 -0800534 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz",
535 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz",
536 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz",
537 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip",
Donald Chaib69e1e52020-08-03 12:34:17 -0700538 "android_tools_pkg-0.19.0rc3.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800539 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800540 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700541 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800542 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700543 # bazelbuild/rules_java
544 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700545 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800546 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700547 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700548 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800549 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700550 "v3.13.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700551 # grpc/grpc
552 "v1.26.0.tar.gz",
553 # c-ares/c-ares
554 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
555 # protocolbuffers/upb
556 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
philwo75edd782019-01-29 05:02:44 -0800557 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700558 dirname = "test_WORKSPACE/distdir",
philwo75edd782019-01-29 05:02:44 -0800559 sha256 = {
Ivo List4c6c9992020-09-23 09:25:05 -0700560 "java_tools_javac11_linux-v10.0.zip": "69e65353c2cd65780abcbcce4daae973599298273b0f8b4d469eed822cb220d1",
561 "java_tools_javac11_windows-v10.0.zip": "d2f62af8daa0a3d55789b605f6582e37038329c64843337c71e64515468e55c4",
562 "java_tools_javac11_darwin-v10.0.zip": "64e5de2175dfccb96831573946b80d106edf3801d9db38b564514bf3581d466b",
Charles Mitae9d883f2020-10-01 06:00:50 -0700563 "coverage_output_generator-v2.5.zip": "cd14f1cb4559e4723e63b7e7b06d09fcc3bd7ba58d03f354cdff1439bd936a7d",
philwo3ac4af42020-02-14 07:58:55 -0800564 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz": "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
philwoe158fe72020-02-17 06:32:43 -0800565 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz": "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
philwo3ac4af42020-02-14 07:58:55 -0800566 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz": "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
567 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip": "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
Donald Chaib69e1e52020-08-03 12:34:17 -0700568 "android_tools_pkg-0.19.0rc3.tar.gz": "ea5c0589a01e2a9f43c20e5c145d3530e3b3bdbe7322789bc5da38d0ca49b837",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800569 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800570 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": "c00ceec469dbcf7929972e3c79f20c14033824538038a554952f5c31d8832f96",
hlopkoaaf64572019-06-14 02:33:56 -0700571 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800572 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700573 # bazelbuild/rules_java
574 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700575 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800576 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700577 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700578 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800579 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700580 "v3.13.0.tar.gz": "9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a",
Yun Penge2f11d72020-06-03 09:16:35 -0700581 # grpc/grpc
582 "v1.26.0.tar.gz": "2fcb7f1ab160d6fd3aaade64520be3e5446fc4c6fa7ba6581afdc4e26094bd81",
583 # c-ares/c-ares
584 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": "e8c2751ddc70fed9dc6f999acd92e232d5846f009ee1674f8aee81f19b2b915a",
585 # protocolbuffers/upb
586 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz": "61d0417abd60e65ed589c9deee7c124fe76a4106831f6ad39464e1525cef1454",
philwo75edd782019-01-29 05:02:44 -0800587 },
588 urls = {
Ivo List4c6c9992020-09-23 09:25:05 -0700589 "java_tools_javac11_linux-v10.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_linux-v10.0.zip"],
590 "java_tools_javac11_windows-v10.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_windows-v10.0.zip"],
591 "java_tools_javac11_darwin-v10.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_darwin-v10.0.zip"],
Charles Mitae9d883f2020-10-01 06:00:50 -0700592 "coverage_output_generator-v2.5.zip": ["https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.5.zip"],
philwo3ac4af42020-02-14 07:58:55 -0800593 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
594 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz"],
595 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
596 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
Donald Chaib69e1e52020-08-03 12:34:17 -0700597 "android_tools_pkg-0.19.0rc3.tar.gz": [
598 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.19.0rc3.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700599 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800600 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800601 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": [
602 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
603 "https://github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800604 ],
hlopkoaaf64572019-06-14 02:33:56 -0700605 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800606 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
607 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
608 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700609 ],
iirinae8260492019-07-03 05:16:09 -0700610 # bazelbuild/rules_java
611 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700612 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700613 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700614 ],
615 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800616 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": [
617 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
618 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700619 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700620 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700621 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": [
622 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
623 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700624 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800625 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700626 "v3.13.0.tar.gz": [
627 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
628 "https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800629 ],
Yun Penge2f11d72020-06-03 09:16:35 -0700630 # grpc/grpc
631 "v1.26.0.tar.gz": [
632 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.26.0.tar.gz",
633 "https://github.com/grpc/grpc/archive/v1.26.0.tar.gz",
634 ],
635 # c-ares/c-ares
636 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": [
637 "https://mirror.bazel.build/github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
638 "https://github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
639 ],
640 # protocolbuffers/upb
641 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz": [
642 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
643 "https://github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
644 ],
philwo75edd782019-01-29 05:02:44 -0800645 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700646)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800647
648load("//scripts/docs:doc_versions.bzl", "DOC_VERSIONS")
649
Jingwen Chen762c27d2020-05-14 03:07:03 -0700650# Load versioned documentation tarballs from GCS
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800651[http_file(
Jingwen Chend3a5fd62020-05-05 14:43:23 -0700652 # Split on "-" to get the version without cherrypick commits.
653 name = "jekyll_tree_%s" % DOC_VERSION["version"].split("-")[0].replace(".", "_"),
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800654 sha256 = DOC_VERSION["sha256"],
655 urls = ["https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-%s.tar" % DOC_VERSION["version"]],
656) for DOC_VERSION in DOC_VERSIONS]
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700657
Jingwen Chen762c27d2020-05-14 03:07:03 -0700658# Load shared base CSS theme from bazelbuild/bazel-website
659http_archive(
660 name = "bazel_website",
Jingwen Chen762c27d2020-05-14 03:07:03 -0700661 # TODO(https://github.com/bazelbuild/bazel/issues/10793)
662 # - Export files from bazel-website's BUILD, instead of doing it here.
663 # - Share more common stylesheets, like footer and navbar.
664 build_file_content = """
665exports_files(["_sass/style.scss"])
Ivo List4c6c9992020-09-23 09:25:05 -0700666""",
667 sha256 = "a5f531dd1d62e6947dcfc279656ffc2fdf6f447c163914c5eabf7961b4cb6eb4",
668 strip_prefix = "bazel-website-c174fa288aa079b68416d2ce2cc97268fa172f42",
669 urls = ["https://github.com/bazelbuild/bazel-website/archive/c174fa288aa079b68416d2ce2cc97268fa172f42.tar.gz"],
Jingwen Chen762c27d2020-05-14 03:07:03 -0700670)
671
wyv8062ca42020-05-25 00:21:00 -0700672# Stardoc recommends declaring its dependencies via "*_dependencies" functions.
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700673# This requires that the repositories these functions come from need to be
674# fetched unconditionally for everything (including just building bazel!), so
675# provide them as http_archives that can be shiped in the distdir, to keep the
676# distribution archive self-contained.
677http_archive(
678 name = "io_bazel_rules_sass",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800679 sha256 = "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
John Caterf47f83e2020-05-04 05:16:00 -0700680 strip_prefix = "rules_sass-1.25.0",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700681 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800682 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
683 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700684 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700685)
iirinaf5c334262019-03-19 02:44:59 -0700686
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700687http_archive(
688 name = "build_bazel_rules_nodejs",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800689 sha256 = "b6670f9f43faa66e3009488bbd909bc7bc46a5a9661a33f6bc578068d1837f37",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700690 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800691 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz",
692 "https://github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700693 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700694)
695
iirina3ab4dbc2019-04-29 05:12:39 -0700696http_archive(
iirinaa6e92602019-05-13 06:20:12 -0700697 name = "java_tools_langtools_javac11",
iirinab815b792019-07-17 05:47:01 -0700698 sha256 = "cf0814fa002ef3d794582bb086516d8c9ed0958f83f19799cdb08949019fe4c7",
iirinaa6e92602019-05-13 06:20:12 -0700699 urls = [
iirinab815b792019-07-17 05:47:01 -0700700 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk11_v2.zip",
iirinaa6e92602019-05-13 06:20:12 -0700701 ],
702)
703
iirina0eec6932019-06-12 07:48:22 -0700704http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700705 name = "platforms",
aldersondrive64235c32019-11-18 08:50:39 -0800706 sha256 = "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
707 strip_prefix = "platforms-46993efdd33b73649796c5fc5c9efb193ae19d51",
hlopkoaaf64572019-06-14 02:33:56 -0700708 urls = [
aldersondrive64235c32019-11-18 08:50:39 -0800709 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
710 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700711 ],
hlopkoaaf64572019-06-14 02:33:56 -0700712)
713
philwo17506af2020-01-28 04:20:39 -0800714# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
715http_archive(
716 name = "android_tools_for_testing",
717 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
718 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List4c6c9992020-09-23 09:25:05 -0700719 sha256 = "ea5c0589a01e2a9f43c20e5c145d3530e3b3bdbe7322789bc5da38d0ca49b837", # DO_NOT_REMOVE_THIS_ANDROID_TOOLS_UPDATE_MARKER
Donald Chaib69e1e52020-08-03 12:34:17 -0700720 url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.19.0rc3.tar.gz",
philwo17506af2020-01-28 04:20:39 -0800721)
722
723# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/coverage.WORKSPACE.
724http_archive(
725 name = "remote_coverage_tools_for_testing",
726 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
727 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Charles Mitae9d883f2020-10-01 06:00:50 -0700728 sha256 = "cd14f1cb4559e4723e63b7e7b06d09fcc3bd7ba58d03f354cdff1439bd936a7d",
philwo17506af2020-01-28 04:20:39 -0800729 urls = [
Charles Mitae9d883f2020-10-01 06:00:50 -0700730 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.5.zip",
philwo17506af2020-01-28 04:20:39 -0800731 ],
732)
733
734# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
735http_archive(
philwo17506af2020-01-28 04:20:39 -0800736 name = "remotejdk11_linux_for_testing",
737 build_file = "@local_jdk//:BUILD.bazel",
738 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
739 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800740 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
741 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-linux_x64",
742 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800743)
744
745# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
746http_archive(
747 name = "remotejdk11_linux_aarch64_for_testing",
748 build_file = "@local_jdk//:BUILD.bazel",
749 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
750 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800751 sha256 = "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
752 strip_prefix = "zulu11.37.48-ca-jdk11.0.6-linux_aarch64",
753 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800754)
755
756# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
757http_archive(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700758 name = "remotejdk11_linux_ppc64le_for_testing",
759 build_file = "@local_jdk//:BUILD.bazel",
760 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
761 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
762 sha256 = "a417db0295b1f4b538ecbaf7c774f3a177fab9657a665940170936c0eca4e71a",
763 strip_prefix = "jdk-11.0.7+10",
764 urls = [
philwo66d84ef2020-06-05 06:52:20 -0700765 "https://mirror.bazel.build/openjdk/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
766 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700767 ],
768)
769
770# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
771http_archive(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700772 name = "remotejdk11_linux_s390x_for_testing",
773 build_file = "@local_jdk//:BUILD.bazel",
774 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
775 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
776 sha256 = "d9b72e87a1d3ebc0c9552f72ae5eb150fffc0298a7cb841f1ce7bfc70dcd1059",
777 strip_prefix = "jdk-11.0.7+10",
778 urls = [
779 "https://mirror.bazel.build/github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz",
780 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz",
781 ],
782)
783
784# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
785http_archive(
philwo17506af2020-01-28 04:20:39 -0800786 name = "remotejdk11_macos_for_testing",
787 build_file = "@local_jdk//:BUILD.bazel",
788 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
789 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800790 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
791 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-macosx_x64",
792 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800793)
794
795# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
796http_archive(
797 name = "remotejdk11_win_for_testing",
798 build_file = "@local_jdk//:BUILD.bazel",
799 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
800 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800801 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
802 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-win_x64",
803 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
philwo17506af2020-01-28 04:20:39 -0800804)
805
806# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
807http_archive(
David Ostrovskyfe291f72020-07-23 04:08:29 -0700808 name = "remotejdk14_linux_for_testing",
809 build_file = "@local_jdk//:BUILD.bazel",
810 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
811 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
812 sha256 = "48bb8947034cd079ad1ef83335e7634db4b12a26743a0dc314b6b861480777aa",
813 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-linux_x64",
814 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-linux_x64.tar.gz"],
815)
816
817# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
818http_archive(
819 name = "remotejdk14_macos_for_testing",
820 build_file = "@local_jdk//:BUILD.bazel",
821 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
822 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
823 sha256 = "088bd4d0890acc9f032b738283bf0f26b2a55c50b02d1c8a12c451d8ddf080dd",
824 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-macosx_x64",
825 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-macosx_x64.tar.gz"],
826)
827
828# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
829http_archive(
830 name = "remotejdk14_win_for_testing",
831 build_file = "@local_jdk//:BUILD.bazel",
832 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
833 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
834 sha256 = "9cb078b5026a900d61239c866161f0d9558ec759aa15c5b4c7e905370e868284",
835 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-win_x64",
836 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-win_x64.zip"],
837)
838
839# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
840http_archive(
philwo17506af2020-01-28 04:20:39 -0800841 name = "remote_java_tools_linux_for_testing",
842 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
843 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List4c6c9992020-09-23 09:25:05 -0700844 sha256 = "69e65353c2cd65780abcbcce4daae973599298273b0f8b4d469eed822cb220d1",
philwo17506af2020-01-28 04:20:39 -0800845 urls = [
Ivo List4c6c9992020-09-23 09:25:05 -0700846 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_linux-v10.0.zip",
847 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v10.0/java_tools_javac11_linux-v10.0.zip",
philwo17506af2020-01-28 04:20:39 -0800848 ],
849)
850
851# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
852http_archive(
853 name = "remote_java_tools_windows_for_testing",
854 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
855 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List4c6c9992020-09-23 09:25:05 -0700856 sha256 = "d2f62af8daa0a3d55789b605f6582e37038329c64843337c71e64515468e55c4",
philwo17506af2020-01-28 04:20:39 -0800857 urls = [
Ivo List4c6c9992020-09-23 09:25:05 -0700858 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_windows-v10.0.zip",
859 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v10.0/java_tools_javac11_windows-v10.0.zip",
philwo17506af2020-01-28 04:20:39 -0800860 ],
861)
862
863# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
864http_archive(
865 name = "remote_java_tools_darwin_for_testing",
866 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
867 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List4c6c9992020-09-23 09:25:05 -0700868 sha256 = "64e5de2175dfccb96831573946b80d106edf3801d9db38b564514bf3581d466b",
philwo17506af2020-01-28 04:20:39 -0800869 urls = [
Ivo List4c6c9992020-09-23 09:25:05 -0700870 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_darwin-v10.0.zip",
871 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v10.0/java_tools_javac11_darwin-v10.0.zip",
philwo17506af2020-01-28 04:20:39 -0800872 ],
873)
874
875# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
876http_archive(
philwo17506af2020-01-28 04:20:39 -0800877 name = "remote_java_tools_javac11_test_linux",
878 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
879 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List4c6c9992020-09-23 09:25:05 -0700880 sha256 = "69e65353c2cd65780abcbcce4daae973599298273b0f8b4d469eed822cb220d1",
philwo17506af2020-01-28 04:20:39 -0800881 urls = [
Ivo List4c6c9992020-09-23 09:25:05 -0700882 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_linux-v10.0.zip",
philwo17506af2020-01-28 04:20:39 -0800883 ],
884)
885
886# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
887http_archive(
888 name = "remote_java_tools_javac11_test_windows",
889 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
890 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List4c6c9992020-09-23 09:25:05 -0700891 sha256 = "d2f62af8daa0a3d55789b605f6582e37038329c64843337c71e64515468e55c4",
philwo17506af2020-01-28 04:20:39 -0800892 urls = [
Ivo List4c6c9992020-09-23 09:25:05 -0700893 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_windows-v10.0.zip",
philwo17506af2020-01-28 04:20:39 -0800894 ],
895)
896
897# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
898http_archive(
899 name = "remote_java_tools_javac11_test_darwin",
900 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
901 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List4c6c9992020-09-23 09:25:05 -0700902 sha256 = "64e5de2175dfccb96831573946b80d106edf3801d9db38b564514bf3581d466b",
philwo17506af2020-01-28 04:20:39 -0800903 urls = [
Ivo List4c6c9992020-09-23 09:25:05 -0700904 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.0/java_tools_javac11_darwin-v10.0.zip",
philwo17506af2020-01-28 04:20:39 -0800905 ],
906)
907
908# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
909http_archive(
philwo17506af2020-01-28 04:20:39 -0800910 name = "openjdk11_linux_archive",
911 build_file_content = """
912java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
913exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
914""",
philwo8b1ef422020-02-14 08:26:00 -0800915 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
916 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-linux_x64",
917 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800918)
919
920# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
921http_archive(
922 name = "openjdk11_darwin_archive",
923 build_file_content = """
924java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
925exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
926""",
philwo8b1ef422020-02-14 08:26:00 -0800927 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
928 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-macosx_x64",
929 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800930)
931
932# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
933http_archive(
934 name = "openjdk11_windows_archive",
935 build_file_content = """
936java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
937exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
938""",
philwo8b1ef422020-02-14 08:26:00 -0800939 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
940 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-win_x64",
941 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
philwo17506af2020-01-28 04:20:39 -0800942)
943
David Ostrovskyfe291f72020-07-23 04:08:29 -0700944# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
945http_archive(
946 name = "openjdk14_linux_archive",
947 build_file_content = """
948java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
949exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
950""",
951 sha256 = "48bb8947034cd079ad1ef83335e7634db4b12a26743a0dc314b6b861480777aa",
952 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-linux_x64",
953 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-linux_x64.tar.gz"],
954)
955
956# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
957http_archive(
958 name = "openjdk14_darwin_archive",
959 build_file_content = """
960java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
961exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
962""",
963 sha256 = "088bd4d0890acc9f032b738283bf0f26b2a55c50b02d1c8a12c451d8ddf080dd",
964 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-macosx_x64",
965 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-macosx_x64.tar.gz"],
966)
967
968# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
969http_archive(
970 name = "openjdk14_windows_archive",
971 build_file_content = """
972java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
973exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
974""",
975 sha256 = "9cb078b5026a900d61239c866161f0d9558ec759aa15c5b4c7e905370e868284",
976 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-win_x64",
977 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-win_x64.zip"],
978)
979
wyv8062ca42020-05-25 00:21:00 -0700980load("@io_bazel_skydoc//:setup.bzl", "stardoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700981
wyv8062ca42020-05-25 00:21:00 -0700982stardoc_repositories()
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700983
984load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -0700985
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700986rules_sass_dependencies()
987
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800988load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700989
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700990node_repositories()
991
992load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700993
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700994sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -0700995
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700996register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700997
998# Tools for building deb, rpm and tar files.
999http_archive(
1000 name = "rules_pkg",
philwo17506af2020-01-28 04:20:39 -08001001 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
1002 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwob14e4062020-01-27 03:02:32 -08001003 sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001004 urls = [
philwob14e4062020-01-27 03:02:32 -08001005 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
1006 "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001007 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001008)
iirinad26a3c12019-07-19 04:39:33 -07001009
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001010load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -07001011
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001012rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -07001013
1014# Toolchains for Resource Compilation (.rc files on Windows).
1015load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
1016
1017winsdk_configure(name = "local_config_winsdk")
1018
1019load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
1020
1021register_local_rc_exe_toolchains()
1022
1023register_toolchains("//src/main/res:empty_rc_toolchain")
Yun Peng01609b82020-05-04 11:12:33 -07001024
Yun Pengb3ac8f62020-09-11 07:39:36 -07001025# Patch upb for grpc due to https://github.com/bazelbuild/bazel/issues/12056
1026# TODO: Remove the following after upgrading grpc to a newer version that's not
1027# affected by this issue.
1028http_archive(
1029 name = "upb",
Yun Pengb3ac8f62020-09-11 07:39:36 -07001030 patch_args = ["-p1"],
Ivo List4c6c9992020-09-23 09:25:05 -07001031 patches = ["//third_party/grpc:upb_gcc10_fix.patch"],
1032 sha256 = "61d0417abd60e65ed589c9deee7c124fe76a4106831f6ad39464e1525cef1454",
Yun Pengb3ac8f62020-09-11 07:39:36 -07001033 strip_prefix = "upb-9effcbcb27f0a665f9f345030188c0b291e32482",
1034 urls = [
1035 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
1036 "https://github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
1037 ],
1038)
1039
Yun Penge2f11d72020-06-03 09:16:35 -07001040http_archive(
1041 name = "com_github_grpc_grpc",
Ivo List4c6c9992020-09-23 09:25:05 -07001042 patch_args = ["-p1"],
1043 patches = ["//third_party/grpc:grpc_1.26.0.patch"],
1044 sha256 = "2fcb7f1ab160d6fd3aaade64520be3e5446fc4c6fa7ba6581afdc4e26094bd81",
1045 strip_prefix = "grpc-1.26.0",
Yun Penge2f11d72020-06-03 09:16:35 -07001046 urls = [
1047 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.26.0.tar.gz",
1048 "https://github.com/grpc/grpc/archive/v1.26.0.tar.gz",
1049 ],
Yun Penge2f11d72020-06-03 09:16:35 -07001050)
1051
1052# Projects using gRPC as an external dependency must call both grpc_deps() and
1053# grpc_extra_deps().
1054load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Ivo List4c6c9992020-09-23 09:25:05 -07001055
Yun Penge2f11d72020-06-03 09:16:35 -07001056grpc_deps()
1057
1058load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
Ivo List4c6c9992020-09-23 09:25:05 -07001059
Yun Penge2f11d72020-06-03 09:16:35 -07001060grpc_extra_deps()
1061
Yun Peng01609b82020-05-04 11:12:33 -07001062load("//tools/distributions/debian:deps.bzl", "debian_deps")
Ivo List4c6c9992020-09-23 09:25:05 -07001063
Yun Peng01609b82020-05-04 11:12:33 -07001064debian_deps()
Andrzej Guszak0f9a5922020-06-25 05:47:21 -07001065
1066load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
Ivo List4c6c9992020-09-23 09:25:05 -07001067
Andrzej Guszak0f9a5922020-06-25 05:47:21 -07001068bazel_skylib_workspace()