blob: 15e604e5e6a6b6ea3a96522c32a3efd283d0c0ee [file] [log] [blame]
Tony Aiuto337e7172020-12-09 10:20:14 -08001# Copyright 2020 The Bazel Authors. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
Googlerbd7a6b92022-02-24 07:38:58 -08007# http://www.apache.org/licenses/LICENSE-2.0
Tony Aiuto337e7172020-12-09 10:20:14 -08008#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Xavier Bonaventurafc4d9d62021-12-08 02:17:49 -080014"""List the distribution dependencies we need to build Bazel.
15
16Note for Bazel users: This is not the file that you are looking for.
17This is internal source and is not intended to tell you what version
18you should use for each dependency.
19"""
Tony Aiuto337e7172020-12-09 10:20:14 -080020
21DIST_DEPS = {
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -080022 ########################################
23 #
24 # Runtime language dependencies
25 #
26 ########################################
Tony Aiutoe973aef2021-01-11 00:32:51 -080027 "platforms": {
aiuto676a0c82022-02-09 08:08:17 -080028 "archive": "platforms-0.0.5.tar.gz",
29 "sha256": "379113459b0feaf6bfbb584a91874c065078aa673222846ac765f86661c27407",
Tony Aiutoe973aef2021-01-11 00:32:51 -080030 "urls": [
aiuto676a0c82022-02-09 08:08:17 -080031 "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
32 "https://github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
Tony Aiutoe973aef2021-01-11 00:32:51 -080033 ],
34 "used_in": [
35 "additional_distfiles",
36 "test_WORKSPACE_files",
37 ],
38 },
Chi Wang26b94ff2021-09-28 23:42:26 -070039 "bazelci_rules": {
40 "archive": "bazelci_rules-1.0.0.tar.gz",
41 "sha256": "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e",
42 "strip_prefix": "bazelci_rules-1.0.0",
Tony Aiutoe973aef2021-01-11 00:32:51 -080043 "urls": [
Chi Wang38a22d12021-12-06 08:30:58 -080044 "https://mirror.bazel.build/github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz",
Chi Wang26b94ff2021-09-28 23:42:26 -070045 "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz",
Tony Aiutoe973aef2021-01-11 00:32:51 -080046 ],
47 "used_in": [
48 "additional_distfiles",
49 ],
50 },
Tony Aiutoc17aa7b2022-08-02 05:40:04 -070051 # Used in src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/cc_configure.WORKSPACE.
52 # Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
53 # Used in src/test/java/com/google/devtools/build/lib/blackbox/framework/blackbox.WORKSAPCE
Tony Aiuto337e7172020-12-09 10:20:14 -080054 "rules_cc": {
Ivo List3e927e42022-09-22 04:07:46 -070055 "archive": "rules_cc-0.0.2.tar.gz",
56 "sha256": "58bff40957ace85c2de21ebfc72e53ed3a0d33af8cc20abd0ceec55c63be7de2",
57 "urls": ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.2/rules_cc-0.0.2.tar.gz"],
Tony Aiutoe973aef2021-01-11 00:32:51 -080058 "used_in": [
59 "additional_distfiles",
60 "test_WORKSPACE_files",
61 ],
Tony Aiuto337e7172020-12-09 10:20:14 -080062 },
Tony Aiutob15a8b42021-01-08 07:42:57 -080063 "rules_java": {
64 "archive": "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
65 "sha256": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
66 "strip_prefix": "rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178",
67 "urls": [
68 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
69 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
70 ],
71 "used_in": [
72 "additional_distfiles",
73 "test_WORKSPACE_files",
74 ],
Tony Aiutob15a8b42021-01-08 07:42:57 -080075 },
Tony Aiutoc17aa7b2022-08-02 05:40:04 -070076 # Used in src/test/java/com/google/devtools/build/lib/blackbox/framework/blackbox.WORKSAPCE
Tony Aiuto320bc942021-01-14 07:43:21 -080077 "rules_proto": {
78 "archive": "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
79 "sha256": "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da",
80 "strip_prefix": "rules_proto-7e4afce6fe62dbff0a4a03450143146f9f2d7488",
81 "urls": [
82 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
83 "https://github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
84 ],
85 "used_in": [
86 "additional_distfiles",
87 "test_WORKSPACE_files",
88 ],
89 },
Tony Aiutoe973aef2021-01-11 00:32:51 -080090 #################################################
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -080091 #
Tony Aiutoe973aef2021-01-11 00:32:51 -080092 # Dependencies which are part of the Bazel binary
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -080093 #
Tony Aiutoe973aef2021-01-11 00:32:51 -080094 #################################################
95 "com_google_protobuf": {
Chi Wangb9e89e32022-01-20 08:52:53 -080096 "archive": "v3.19.2.tar.gz",
97 "sha256": "4dd35e788944b7686aac898f77df4e9a54da0ca694b8801bd6b2a9ffc1b3085e",
98 "strip_prefix": "protobuf-3.19.2",
Tony Aiutoe973aef2021-01-11 00:32:51 -080099 "urls": [
Chi Wangb9e89e32022-01-20 08:52:53 -0800100 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.19.2.tar.gz",
101 "https://github.com/protocolbuffers/protobuf/archive/v3.19.2.tar.gz",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800102 ],
103 "patch_args": ["-p1"],
Chi Wangb9e89e32022-01-20 08:52:53 -0800104 "patches": ["//third_party/protobuf:3.19.2.patch"],
Tony Aiutoe973aef2021-01-11 00:32:51 -0800105 "used_in": [
106 "additional_distfiles",
107 "test_WORKSPACE_files",
108 ],
109 },
110 "com_github_grpc_grpc": {
Ara Nguyene58785c2022-07-25 13:39:13 -0700111 "archive": "v1.47.0.tar.gz",
112 "sha256": "271bdc890bf329a8de5b65819f0f9590a5381402429bca37625b63546ed19e54",
113 "strip_prefix": "grpc-1.47.0",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800114 "urls": [
Ara Nguyene58785c2022-07-25 13:39:13 -0700115 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.47.0.tar.gz",
116 "https://github.com/grpc/grpc/archive/v1.47.0.tar.gz",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800117 ],
118 "patch_args": ["-p1"],
119 "patches": [
Ara Nguyene58785c2022-07-25 13:39:13 -0700120 "//third_party/grpc:grpc_1.47.0.patch",
121 "//third_party/grpc:grpc_1.47.0.win_arm64.patch",
122 ],
123 "used_in": [
124 "additional_distfiles",
125 "test_WORKSPACE_files",
126 ],
127 },
128 "com_github_cncf_udpa": {
129 "archive": "cb28da3451f158a947dfc45090fe92b07b243bc1.tar.gz",
130 "sha256": "5bc8365613fe2f8ce6cc33959b7667b13b7fe56cb9d16ba740c06e1a7c4242fc",
131 "urls": [
132 "https://mirror.bazel.build/github.com/cncf/xds/archive/cb28da3451f158a947dfc45090fe92b07b243bc1.tar.gz",
133 "https://github.com/cncf/xds/archive/cb28da3451f158a947dfc45090fe92b07b243bc1.tar.gz",
134 ],
135 "strip_prefix": "xds-cb28da3451f158a947dfc45090fe92b07b243bc1",
136 "patch_args": ["-p1"],
137 "patches": [
138 "//third_party/cncf_udpa:cncf_udpa_0.0.1.patch",
139 ],
140 "used_in": [
141 "additional_distfiles",
142 "test_WORKSPACE_files",
143 ],
144 },
145 "com_envoyproxy_protoc_gen_validate": {
146 "archive": "4694024279bdac52b77e22dc87808bd0fd732b69.tar.gz",
147 "sha256": "1e490b98005664d149b379a9529a6aa05932b8a11b76b4cd86f3d22d76346f47",
148 "strip_prefix": "protoc-gen-validate-4694024279bdac52b77e22dc87808bd0fd732b69",
149 "urls": [
150 "https://mirror.bazel.build/github.com/envoyproxy/protoc-gen-validate/archive/4694024279bdac52b77e22dc87808bd0fd732b69.tar.gz",
151 "https://github.com/envoyproxy/protoc-gen-validate/archive/4694024279bdac52b77e22dc87808bd0fd732b69.tar.gz",
152 ],
153 "patch_args": ["-p1"],
154 "patches": [
155 "//third_party/protoc_gen_validate:protoc_gen_validate.patch",
156 ],
157 "used_in": [
158 "additional_distfiles",
159 "test_WORKSPACE_files",
160 ],
161 },
162 "bazel_gazelle": {
163 "archive": "bazel-gazelle-v0.24.0.tar.gz",
164 "sha256": "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb",
165 "urls": [
166 "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
167 "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
168 ],
169 "used_in": [
170 "additional_distfiles",
171 "test_WORKSPACE_files",
172 ],
173 },
174 "com_google_googleapis": {
175 "archive": "2f9af297c84c55c8b871ba4495e01ade42476c92.tar.gz",
176 "sha256": "5bb6b0253ccf64b53d6c7249625a7e3f6c3bc6402abd52d3778bfa48258703a0",
177 "strip_prefix": "googleapis-2f9af297c84c55c8b871ba4495e01ade42476c92",
178 "urls": [
179 "https://mirror.bazel.build/github.com/googleapis/googleapis/archive/2f9af297c84c55c8b871ba4495e01ade42476c92.tar.gz",
180 "https://github.com/googleapis/googleapis/archive/2f9af297c84c55c8b871ba4495e01ade42476c92.tar.gz",
181 ],
182 "used_in": [
183 "additional_distfiles",
184 "test_WORKSPACE_files",
185 ],
186 },
187 "upb": {
Googler693a1d02022-07-29 04:46:00 -0700188 "archive": "e5f26018368b11aab672e8e8bb76513f3620c579.tar.gz",
189 "sha256": "03b642a535656560cd95cab3b26e8c53ce37e472307dce5bb7e47c9953bbca0f",
190 "strip_prefix": "upb-e5f26018368b11aab672e8e8bb76513f3620c579",
Ara Nguyene58785c2022-07-25 13:39:13 -0700191 "urls": [
Googler693a1d02022-07-29 04:46:00 -0700192 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/e5f26018368b11aab672e8e8bb76513f3620c579.tar.gz",
193 "https://github.com/protocolbuffers/upb/archive/e5f26018368b11aab672e8e8bb76513f3620c579.tar.gz",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800194 ],
195 "used_in": [
196 "additional_distfiles",
197 "test_WORKSPACE_files",
198 ],
199 },
200 "c-ares": {
Ara Nguyene58785c2022-07-25 13:39:13 -0700201 "archive": "6654436a307a5a686b008c1d4c93b0085da6e6d8.tar.gz",
202 "sha256": "ec76c5e79db59762776bece58b69507d095856c37b81fd35bfb0958e74b61d93",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800203 "urls": [
Ara Nguyene58785c2022-07-25 13:39:13 -0700204 "https://mirror.bazel.build/github.com/c-ares/c-ares/archive/6654436a307a5a686b008c1d4c93b0085da6e6d8.tar.gz",
205 "https://github.com/c-ares/c-ares/archive/6654436a307a5a686b008c1d4c93b0085da6e6d8.tar.gz",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800206 ],
207 "used_in": [
208 "additional_distfiles",
209 "test_WORKSPACE_files",
210 ],
211 },
212 "re2": {
213 "archive": "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
214 "sha256": "9f385e146410a8150b6f4cb1a57eab7ec806ced48d427554b1e754877ff26c3e",
215 "urls": [
216 "https://mirror.bazel.build/github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
217 "https://github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
218 ],
219 "used_in": [
220 "additional_distfiles",
221 "test_WORKSPACE_files",
222 ],
223 },
Yun Pengb47aa712022-04-05 04:21:29 -0700224 "com_google_absl": {
225 "archive": "20211102.0.tar.gz",
226 "sha256": "dcf71b9cba8dc0ca9940c4b316a0c796be8fab42b070bb6b7cab62b48f0e66c4",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800227 "urls": [
Yun Pengb47aa712022-04-05 04:21:29 -0700228 "https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.tar.gz",
229 "https://github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.tar.gz",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800230 ],
231 "used_in": [
232 "additional_distfiles",
233 "test_WORKSPACE_files",
234 ],
Yun Pengb47aa712022-04-05 04:21:29 -0700235 "strip_prefix": "abseil-cpp-20211102.0",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800236 },
Alessandro Patti6da80862021-11-11 22:49:37 -0800237 "zstd-jni": {
238 "archive": "v1.5.0-4.zip",
239 "patch_args": ["-p1"],
240 "patches": [
241 "//third_party:zstd-jni/Native.java.patch",
242 ],
243 "sha256": "d320d59b89a163c5efccbe4915ae6a49883ce653cdc670643dfa21c6063108e4",
244 "urls": [
245 "https://mirror.bazel.build/github.com/luben/zstd-jni/archive/v1.5.0-4.zip",
246 "https://github.com/luben/zstd-jni/archive/v1.5.0-4.zip",
247 ],
248 "used_in": [
249 "additional_distfiles",
250 ],
251 },
Tony Aiutoe973aef2021-01-11 00:32:51 -0800252 ###################################################
253 #
254 # Build time dependencies for testing and packaging
255 #
256 ###################################################
Tony Aiuto2b7ec5c2021-01-11 07:50:26 -0800257 "bazel_skylib": {
258 "archive": "bazel-skylib-1.0.3.tar.gz",
259 "sha256": "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
260 "urls": [
261 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
262 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
263 ],
264 "used_in": [
265 "additional_distfiles",
266 "test_WORKSPACE_files",
267 ],
268 },
269 "io_bazel_skydoc": {
270 "archive": "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
271 "sha256": "5a725b777976b77aa122b707d1b6f0f39b6020f66cd427bb111a585599c857b1",
272 "urls": [
273 "https://mirror.bazel.build/github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
274 "https://github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
275 ],
276 "used_in": [
277 "additional_distfiles",
278 ],
279 "strip_prefix": "stardoc-1ef781ced3b1443dca3ed05dec1989eca1a4e1cd",
280 },
Tony Aiuto46bb5452022-05-17 09:35:28 -0700281 "rules_license": {
Tony Aiutodb2cf1e2022-06-03 10:35:30 -0700282 "archive": "rules_license-0.0.3.tar.gz",
283 "sha256": "00ccc0df21312c127ac4b12880ab0f9a26c1cff99442dc6c5a331750360de3c3",
Tony Aiuto46bb5452022-05-17 09:35:28 -0700284 "urls": [
Tony Aiutodb2cf1e2022-06-03 10:35:30 -0700285 "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.3/rules_license-0.0.3.tar.gz",
286 "https://github.com/bazelbuild/rules_license/releases/download/0.0.3/rules_license-0.0.3.tar.gz",
Tony Aiuto46bb5452022-05-17 09:35:28 -0700287 ],
288 "used_in": [
289 "additional_distfiles",
Tony Aiuto881fc802022-05-25 06:30:17 -0700290 "test_WORKSPACE_files",
Tony Aiuto46bb5452022-05-17 09:35:28 -0700291 ],
292 },
Tony Aiuto337e7172020-12-09 10:20:14 -0800293 "rules_pkg": {
aiuto3441ef22022-04-12 12:40:59 -0700294 "archive": "rules_pkg-0.7.0.tar.gz",
295 "sha256": "8a298e832762eda1830597d64fe7db58178aa84cd5926d76d5b744d6558941c2",
Tony Aiuto337e7172020-12-09 10:20:14 -0800296 "urls": [
aiuto3441ef22022-04-12 12:40:59 -0700297 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz",
298 "https://github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz",
Tony Aiuto337e7172020-12-09 10:20:14 -0800299 ],
Tony Aiutoe973aef2021-01-11 00:32:51 -0800300 "used_in": [
301 "additional_distfiles",
302 ],
Tony Aiuto337e7172020-12-09 10:20:14 -0800303 },
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800304 # for Stardoc
305 "io_bazel_rules_sass": {
306 "archive": "1.25.0.zip",
307 "sha256": "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
308 "strip_prefix": "rules_sass-1.25.0",
309 "urls": [
310 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
311 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
312 ],
Tony Aiutoe973aef2021-01-11 00:32:51 -0800313 "used_in": [
314 "additional_distfiles",
315 ],
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800316 },
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800317 "build_bazel_rules_nodejs": {
Googler18acfce2022-06-21 05:41:07 -0700318 "archive": "rules_nodejs-5.5.0.tar.gz",
319 "sha256": "0fad45a9bda7dc1990c47b002fd64f55041ea751fafc00cd34efb96107675778",
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800320 "urls": [
Googler18acfce2022-06-21 05:41:07 -0700321 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/5.5.0/rules_nodejs-5.5.0.tar.gz",
322 "https://github.com/bazelbuild/rules_nodejs/releases/download/5.5.0/rules_nodejs-5.5.0.tar.gz",
323 ],
324 "used_in": [
325 "additional_distfiles",
326 ],
327 },
328 "rules_nodejs": {
329 "archive": "rules_nodejs-core-5.5.0.tar.gz",
330 "sha256": "4d48998e3fa1e03c684e6bdf7ac98051232c7486bfa412e5b5475bbaec7bb257",
331 "urls": [
332 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/5.5.0/rules_nodejs-core-5.5.0.tar.gz",
333 "https://github.com/bazelbuild/rules_nodejs/releases/download/5.5.0/rules_nodejs-core-5.5.0.tar.gz",
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800334 ],
Tony Aiutoe973aef2021-01-11 00:32:51 -0800335 "used_in": [
336 "additional_distfiles",
337 ],
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800338 },
mennyf431b0c2021-01-13 09:18:29 -0800339 "desugar_jdk_libs": {
Menny Even Danan29cfb0b2021-03-31 15:21:30 -0700340 # Commit 5847d6a06302136d95a14b4cbd4b55a9c9f1436e of 2021-03-10
341 "archive": "5847d6a06302136d95a14b4cbd4b55a9c9f1436e.zip",
342 "sha256": "299452e6f4a4981b2e6d22357f7332713382a63e4c137f5fd6b89579f6d610cb",
343 "strip_prefix": "desugar_jdk_libs-5847d6a06302136d95a14b4cbd4b55a9c9f1436e",
mennyf431b0c2021-01-13 09:18:29 -0800344 "urls": [
Menny Even Danan29cfb0b2021-03-31 15:21:30 -0700345 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/5847d6a06302136d95a14b4cbd4b55a9c9f1436e.zip",
346 "https://github.com/google/desugar_jdk_libs/archive/5847d6a06302136d95a14b4cbd4b55a9c9f1436e.zip",
mennyf431b0c2021-01-13 09:18:29 -0800347 ],
348 "used_in": [
349 "additional_distfiles",
350 ],
351 },
aiutobbeb1da2021-01-15 06:50:56 -0800352 "remote_coverage_tools": {
Charles Mitaa70d84b2022-05-06 02:52:11 -0700353 "archive": "coverage_output_generator-v2.6.zip",
354 "sha256": "7006375f6756819b7013ca875eab70a541cf7d89142d9c511ed78ea4fefa38af",
aiutobbeb1da2021-01-15 06:50:56 -0800355 "urls": [
Charles Mitaa70d84b2022-05-06 02:52:11 -0700356 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.6.zip",
aiutobbeb1da2021-01-15 06:50:56 -0800357 ],
358 "used_in": [
aiutobbeb1da2021-01-15 06:50:56 -0800359 "test_WORKSPACE_files",
360 ],
361 },
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800362 "remote_java_tools": {
John Cater2cff2ac2021-02-26 07:38:37 -0800363 "aliases": [
364 "remote_java_tools_test",
365 "remote_java_tools_for_testing",
366 ],
hvadehra8349a392022-06-28 07:42:51 -0700367 "archive": "java_tools-v11.8.zip",
368 "sha256": "8fb4d3138bd92a9d3324dae29c9f70d91ca2db18cd0bf1997446eed4657d19b3",
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800369 "urls": [
hvadehra8349a392022-06-28 07:42:51 -0700370 "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.8/java_tools-v11.8.zip",
371 "https://github.com/bazelbuild/java_tools/releases/download/java_v11.8/java_tools-v11.8.zip",
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800372 ],
373 "used_in": [
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800374 "test_WORKSPACE_files",
375 ],
376 },
377 "remote_java_tools_linux": {
John Cater2cff2ac2021-02-26 07:38:37 -0800378 "aliases": [
379 "remote_java_tools_test_linux",
380 "remote_java_tools_linux_for_testing",
381 ],
hvadehra8349a392022-06-28 07:42:51 -0700382 "archive": "java_tools_linux-v11.8.zip",
383 "sha256": "41502b293eea292b0577b46e8d7738bfe88180562acbf99ed620b5387a60efee",
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800384 "urls": [
hvadehra8349a392022-06-28 07:42:51 -0700385 "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.8/java_tools_linux-v11.8.zip",
386 "https://github.com/bazelbuild/java_tools/releases/download/java_v11.8/java_tools_linux-v11.8.zip",
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800387 ],
388 "used_in": [
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800389 "test_WORKSPACE_files",
390 ],
391 },
392 "remote_java_tools_windows": {
John Cater2cff2ac2021-02-26 07:38:37 -0800393 "aliases": [
394 "remote_java_tools_test_windows",
395 "remote_java_tools_windows_for_testing",
396 ],
hvadehra8349a392022-06-28 07:42:51 -0700397 "archive": "java_tools_windows-v11.8.zip",
398 "sha256": "056ed8ba64920409eab63e3c4888c1970a523d2c03965784fc3243e37195318b",
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800399 "urls": [
hvadehra8349a392022-06-28 07:42:51 -0700400 "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.8/java_tools_windows-v11.8.zip",
401 "https://github.com/bazelbuild/java_tools/releases/download/java_v11.8/java_tools_windows-v11.8.zip",
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800402 ],
403 "used_in": [
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800404 "test_WORKSPACE_files",
405 ],
406 },
407 "remote_java_tools_darwin": {
John Cater2cff2ac2021-02-26 07:38:37 -0800408 "aliases": [
409 "remote_java_tools_test_darwin",
410 "remote_java_tools_darwin_for_testing",
411 ],
hvadehra8349a392022-06-28 07:42:51 -0700412 "archive": "java_tools_darwin-v11.8.zip",
413 "sha256": "0dcf4500cc4a1de8e563c1d48a079a7a0cf77cc246e39fd37fcc78ddf409ed26",
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800414 "urls": [
hvadehra8349a392022-06-28 07:42:51 -0700415 "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.8/java_tools_darwin-v11.8.zip",
416 "https://github.com/bazelbuild/java_tools/releases/download/java_v11.8/java_tools_darwin-v11.8.zip",
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800417 ],
418 "used_in": [
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800419 "test_WORKSPACE_files",
420 ],
421 },
Ivo Listb7411162022-01-14 09:53:01 -0800422 "remotejdk11_linux": {
423 "aliases": [
424 "remotejdk11_linux_for_testing",
425 "openjdk11_linux_archive",
cushon095f1e22022-02-08 10:54:53 -0800426 "openjdk_linux_vanilla",
Ivo Listb7411162022-01-14 09:53:01 -0800427 ],
Liam Miller-Cushon8f3d99a2022-04-21 08:10:51 -0700428 "archive": "zulu11.56.19-ca-jdk11.0.15-linux_x64.tar.gz",
429 "sha256": "e064b61d93304012351242bf0823c6a2e41d9e28add7ea7f05378b7243d34247",
430 "strip_prefix": "zulu11.56.19-ca-jdk11.0.15-linux_x64",
Ivo Listb7411162022-01-14 09:53:01 -0800431 "urls": [
Liam Miller-Cushon8f3d99a2022-04-21 08:10:51 -0700432 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu11.56.19-ca-jdk11.0.15-linux_x64.tar.gz",
433 "https://cdn.azul.com/zulu/bin/zulu11.56.19-ca-jdk11.0.15-linux_x64.tar.gz",
Ivo Listb7411162022-01-14 09:53:01 -0800434 ],
435 "used_in": ["test_WORKSPACE_files"],
436 },
437 "remotejdk11_linux_aarch64": {
438 "aliases": [
439 "remotejdk11_linux_aarch64_for_testing",
cushon095f1e22022-02-08 10:54:53 -0800440 "openjdk_linux_aarch64_vanilla",
Ivo Listb7411162022-01-14 09:53:01 -0800441 ],
Liam Miller-Cushon8f3d99a2022-04-21 08:10:51 -0700442 "archive": "zulu11.56.19-ca-jdk11.0.15-linux_aarch64.tar.gz",
443 "sha256": "fc7c41a0005180d4ca471c90d01e049469e0614cf774566d4cf383caa29d1a97",
444 "strip_prefix": "zulu11.56.19-ca-jdk11.0.15-linux_aarch64",
Liam Miller-Cushon7de15712022-01-25 11:34:44 -0800445 "urls": [
Liam Miller-Cushon8f3d99a2022-04-21 08:10:51 -0700446 "https://mirror.bazel.build/cdn.azul.com/zulu-embedded/bin/zulu11.56.19-ca-jdk11.0.15-linux_aarch64.tar.gz",
447 "https://cdn.azul.com/zulu-embedded/bin/zulu11.56.19-ca-jdk11.0.15-linux_aarch64.tar.gz",
Liam Miller-Cushon7de15712022-01-25 11:34:44 -0800448 ],
Ivo Listb7411162022-01-14 09:53:01 -0800449 "used_in": ["test_WORKSPACE_files"],
450 },
451 "remotejdk11_linux_ppc64le": {
452 "aliases": [
453 "remotejdk11_linux_ppc64le_for_testing",
cushon095f1e22022-02-08 10:54:53 -0800454 "openjdk_linux_ppc64le_vanilla",
Ivo Listb7411162022-01-14 09:53:01 -0800455 ],
Liam Miller-Cushon2ef7d6c2022-04-28 00:13:45 -0700456 "sha256": "a8fba686f6eb8ae1d1a9566821dbd5a85a1108b96ad857fdbac5c1e4649fc56f",
457 "strip_prefix": "jdk-11.0.15+10",
Ivo Listb7411162022-01-14 09:53:01 -0800458 "urls": [
Liam Miller-Cushon2ef7d6c2022-04-28 00:13:45 -0700459 "https://mirror.bazel.build/github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.15_10.tar.gz",
460 "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.15_10.tar.gz",
Ivo Listb7411162022-01-14 09:53:01 -0800461 ],
462 "used_in": [],
463 },
464 "remotejdk11_linux_s390x": {
465 "aliases": [
466 "remotejdk11_linux_s390x_for_testing",
cushon095f1e22022-02-08 10:54:53 -0800467 "openjdk_linux_s390x_vanilla",
Ivo Listb7411162022-01-14 09:53:01 -0800468 ],
Liam Miller-Cushon2ef7d6c2022-04-28 00:13:45 -0700469 "sha256": "a58fc0361966af0a5d5a31a2d8a208e3c9bb0f54f345596fd80b99ea9a39788b",
470 "strip_prefix": "jdk-11.0.15+10",
Ivo Listb7411162022-01-14 09:53:01 -0800471 "urls": [
Liam Miller-Cushon2ef7d6c2022-04-28 00:13:45 -0700472 "https://mirror.bazel.build/github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.15_10.tar.gz",
473 "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.15_10.tar.gz",
Ivo Listb7411162022-01-14 09:53:01 -0800474 ],
475 "used_in": [],
476 },
477 "remotejdk11_macos": {
478 "aliases": [
479 "remotejdk11_macos_for_testing",
cushon095f1e22022-02-08 10:54:53 -0800480 "openjdk_macos_x86_64_vanilla",
Ivo Listb7411162022-01-14 09:53:01 -0800481 "openjdk11_darwin_archive",
482 ],
Liam Miller-Cushon8f3d99a2022-04-21 08:10:51 -0700483 "archive": "zulu11.56.19-ca-jdk11.0.15-macosx_x64.tar.gz",
484 "sha256": "2614e5c5de8e989d4d81759de4c333aa5b867b17ab9ee78754309ba65c7f6f55",
485 "strip_prefix": "zulu11.56.19-ca-jdk11.0.15-macosx_x64",
Liam Miller-Cushon7de15712022-01-25 11:34:44 -0800486 "urls": [
Liam Miller-Cushon8f3d99a2022-04-21 08:10:51 -0700487 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu11.56.19-ca-jdk11.0.15-macosx_x64.tar.gz",
488 "https://cdn.azul.com/zulu/bin/zulu11.56.19-ca-jdk11.0.15-macosx_x64.tar.gz",
Liam Miller-Cushon7de15712022-01-25 11:34:44 -0800489 ],
Ivo Listb7411162022-01-14 09:53:01 -0800490 "used_in": ["test_WORKSPACE_files"],
491 },
492 "remotejdk11_macos_aarch64": {
493 "aliases": [
cushon095f1e22022-02-08 10:54:53 -0800494 "openjdk_macos_aarch64_vanilla",
Ivo Listb7411162022-01-14 09:53:01 -0800495 "remotejdk11_macos_aarch64_for_testing",
496 "openjdk11_darwin_aarch64_archive",
497 ],
Liam Miller-Cushon8f3d99a2022-04-21 08:10:51 -0700498 "archive": "zulu11.56.19-ca-jdk11.0.15-macosx_aarch64.tar.gz",
499 "sha256": "6bb0d2c6e8a29dcd9c577bbb2986352ba12481a9549ac2c0bcfd00ed60e538d2",
500 "strip_prefix": "zulu11.56.19-ca-jdk11.0.15-macosx_aarch64",
Ivo Listb7411162022-01-14 09:53:01 -0800501 "urls": [
Liam Miller-Cushon8f3d99a2022-04-21 08:10:51 -0700502 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu11.56.19-ca-jdk11.0.15-macosx_aarch64.tar.gz",
503 "https://cdn.azul.com/zulu/bin/zulu11.56.19-ca-jdk11.0.15-macosx_aarch64.tar.gz",
Ivo Listb7411162022-01-14 09:53:01 -0800504 ],
505 "used_in": ["test_WORKSPACE_files"],
506 },
507 "remotejdk11_win": {
508 "aliases": [
509 "remotejdk11_win_for_testing",
510 "openjdk11_windows_archive",
cushon095f1e22022-02-08 10:54:53 -0800511 "openjdk_win_vanilla",
Ivo Listb7411162022-01-14 09:53:01 -0800512 ],
Liam Miller-Cushon8f3d99a2022-04-21 08:10:51 -0700513 "archive": "zulu11.56.19-ca-jdk11.0.15-win_x64.zip",
514 "sha256": "a106c77389a63b6bd963a087d5f01171bd32aa3ee7377ecef87531390dcb9050",
515 "strip_prefix": "zulu11.56.19-ca-jdk11.0.15-win_x64",
Liam Miller-Cushon7de15712022-01-25 11:34:44 -0800516 "urls": [
Liam Miller-Cushon8f3d99a2022-04-21 08:10:51 -0700517 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu11.56.19-ca-jdk11.0.15-win_x64.zip",
518 "https://cdn.azul.com/zulu/bin/zulu11.56.19-ca-jdk11.0.15-win_x64.zip",
Liam Miller-Cushon7de15712022-01-25 11:34:44 -0800519 ],
Ivo Listb7411162022-01-14 09:53:01 -0800520 "used_in": ["test_WORKSPACE_files"],
521 },
cushon095f1e22022-02-08 10:54:53 -0800522 "remotejdk17_win_arm64": {
523 "aliases": [
Niyas Saitb6024252022-02-10 06:59:31 -0800524 "remotejdk17_win_arm64_for_testing",
525 "openjdk17_windows_arm64_archive",
cushon095f1e22022-02-08 10:54:53 -0800526 "openjdk_win_arm64_vanilla",
527 ],
528 "archive": "zulu17.30.15-ca-jdk17.0.1-win_aarch64.zip",
529 "sha256": "811d7e7591bac4f081dfb00ba6bd15b6fc5969e1f89f0f327ef75147027c3877",
530 "strip_prefix": "zulu17.30.15-ca-jdk17.0.1-win_aarch64",
531 "urls": [
532 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.30.15-ca-jdk17.0.1-win_aarch64.zip",
533 "https://cdn.azul.com/zulu/bin/zulu17.30.15-ca-jdk17.0.1-win_aarch64.zip",
534 ],
535 "used_in": ["test_WORKSPACE_files"],
536 },
Niyas Saitb6024252022-02-10 06:59:31 -0800537 "remotejdk11_win_arm64": {
538 "aliases": [
539 "remotejdk11_win_arm64_for_testing",
540 "openjdk11_windows_arm64_archive",
541 ],
542 "archive": "microsoft-jdk-11.0.13.8.1-windows-aarch64.zip",
543 "sha256": "b8a28e6e767d90acf793ea6f5bed0bb595ba0ba5ebdf8b99f395266161e53ec2",
544 "strip_prefix": "jdk-11.0.13+8",
545 "urls": [
546 "https://mirror.bazel.build/aka.ms/download-jdk/microsoft-jdk-11.0.13.8.1-windows-aarch64.zip",
547 ],
548 "used_in": ["test_WORKSPACE_files"],
549 },
Ivo Listb7411162022-01-14 09:53:01 -0800550 "remotejdk17_linux": {
551 "aliases": [
552 "remotejdk17_linux_for_testing",
553 "openjdk17_linux_archive",
554 ],
David Ostrovskyfbb09582022-02-08 08:00:11 -0800555 "sha256": "73d5c4bae20325ca41b606f7eae64669db3aac638c5b3ead4a975055846ad6de",
556 "strip_prefix": "zulu17.32.13-ca-jdk17.0.2-linux_x64",
Ivo Listb7411162022-01-14 09:53:01 -0800557 "urls": [
David Ostrovskyfbb09582022-02-08 08:00:11 -0800558 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-linux_x64.tar.gz",
559 "https://cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-linux_x64.tar.gz",
Ivo Listb7411162022-01-14 09:53:01 -0800560 ],
561 "used_in": [],
562 },
Noa Resarea380a152022-09-07 13:39:00 -0700563 "remotejdk17_linux_aarch64": {
564 "aliases": [
565 "remotejdk17_linux_aarch64_for_testing",
566 "openjdk17_linux_aarch64_archive",
567 ],
568 "archive": "zulu17.32.13-ca-jdk17.0.2-linux_aarch64.tar.gz",
569 "sha256": "2b8066bbdbc5cff422bb6b6db1b8f8d362b576340cce8492f1255502af632b06",
570 "strip_prefix": "zulu17.32.13-ca-jdk17.0.2-linux_aarch64",
571 "urls": [
572 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-linux_aarch64.tar.gz",
573 "https://cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-linux_aarch64.tar.gz",
574 ],
575 "used_in": ["test_WORKSPACE_files"],
576 },
Ivo Listb7411162022-01-14 09:53:01 -0800577 "remotejdk17_macos": {
578 "aliases": [
579 "remotejdk17_macos_for_testing",
580 "openjdk17_darwin_archive",
581 ],
David Ostrovskyfbb09582022-02-08 08:00:11 -0800582 "sha256": "89d04b2d99b05dcb25114178e65f6a1c5ca742e125cab0a63d87e7e42f3fcb80",
583 "strip_prefix": "zulu17.32.13-ca-jdk17.0.2-macosx_x64",
Ivo Listb7411162022-01-14 09:53:01 -0800584 "urls": [
David Ostrovskyfbb09582022-02-08 08:00:11 -0800585 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-macosx_x64.tar.gz",
586 "https://cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-macosx_x64.tar.gz",
Ivo Listb7411162022-01-14 09:53:01 -0800587 ],
588 "used_in": [],
589 },
590 "remotejdk17_macos_aarch64": {
591 "aliases": [
592 "remotejdk17_macos_aarch64_for_testing",
593 "openjdk17_darwin_aarch64_archive",
594 ],
David Ostrovskyfbb09582022-02-08 08:00:11 -0800595 "sha256": "54247dde248ffbcd3c048675504b1c503b81daf2dc0d64a79e353c48d383c977",
596 "strip_prefix": "zulu17.32.13-ca-jdk17.0.2-macosx_aarch64",
Ivo Listb7411162022-01-14 09:53:01 -0800597 "urls": [
David Ostrovskyfbb09582022-02-08 08:00:11 -0800598 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-macosx_aarch64.tar.gz",
599 "https://cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-macosx_aarch64.tar.gz",
Ivo Listb7411162022-01-14 09:53:01 -0800600 ],
601 "used_in": [],
602 },
603 "remotejdk17_win": {
604 "aliases": [
605 "remotejdk17_win_for_testing",
606 "openjdk17_windows_archive",
607 ],
David Ostrovskyfbb09582022-02-08 08:00:11 -0800608 "sha256": "e965aa0ea7a0661a3446cf8f10ee00684b851f883b803315289f26b4aa907fdb",
609 "strip_prefix": "zulu17.32.13-ca-jdk17.0.2-win_x64",
Ivo Listb7411162022-01-14 09:53:01 -0800610 "urls": [
David Ostrovskyfbb09582022-02-08 08:00:11 -0800611 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-win_x64.zip",
612 "https://cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-win_x64.zip",
Ivo Listb7411162022-01-14 09:53:01 -0800613 ],
614 "used_in": [],
615 },
Noa Resarea380a152022-09-07 13:39:00 -0700616 "remotejdk18_linux_aarch64": {
617 "aliases": [
618 "remotejdk18_linux_for_testing",
619 "openjdk18_linux_archive",
620 ],
621 "archive": "zulu18.28.13-ca-jdk18.0.0-linux_aarch64.tar.gz",
622 "sha256": "a1d5f78172f32f819d08e9043b0f82fa7af738b37c55c6ca8d6092c61d204d53",
623 "strip_prefix": "zulu18.28.13-ca-jdk18.0.0-linux_aarch64",
624 "urls": [
625 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-linux_aarch64.tar.gz",
626 "https://cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-linux_aarch64.tar.gz",
627 ],
628 "used_in": ["test_WORKSPACE_files"],
629 },
Liam Miller-Cushona7f1c712022-03-29 11:57:55 -0700630 "remotejdk18_linux": {
631 "aliases": [
632 "remotejdk18_linux_for_testing",
633 "openjdk18_linux_archive",
634 ],
635 "sha256": "959a94ca4097dcaabc7886784cec10dfdf2b0a3bff890ea8943cc09c5fff29cb",
636 "strip_prefix": "zulu18.28.13-ca-jdk18.0.0-linux_x64",
637 "urls": [
638 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-linux_x64.tar.gz",
639 "https://cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-linux_x64.tar.gz",
640 ],
641 "used_in": [],
642 },
643 "remotejdk18_macos": {
644 "aliases": [
645 "remotejdk18_macos_for_testing",
646 "openjdk18_darwin_archive",
647 ],
648 "sha256": "780a9aa4bda95a6793bf41d13f837c59ef915e9bfd0e0c5fd4c70e4cdaa88541",
649 "strip_prefix": "zulu18.28.13-ca-jdk18.0.0-macosx_x64",
650 "urls": [
651 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-macosx_x64.tar.gz",
652 "https://cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-macosx_x64.tar.gz",
653 ],
654 "used_in": [],
655 },
656 "remotejdk18_macos_aarch64": {
657 "aliases": [
658 "remotejdk18_macos_aarch64_for_testing",
659 "openjdk18_darwin_aarch64_archive",
660 ],
661 "sha256": "9595e001451e201fdf33c1952777968a3ac18fe37273bdeaea5b5ed2c4950432",
662 "strip_prefix": "zulu18.28.13-ca-jdk18.0.0-macosx_aarch64",
663 "urls": [
664 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-macosx_aarch64.tar.gz",
665 "https://cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-macosx_aarch64.tar.gz",
666 ],
667 "used_in": [],
668 },
669 "remotejdk18_win": {
670 "aliases": [
671 "remotejdk18_win_for_testing",
672 "openjdk18_windows_archive",
673 ],
674 "sha256": "6c75498163b047595386fdb909cb6d4e04282c3a81799743c5e1f9316391fe16",
675 "strip_prefix": "zulu18.28.13-ca-jdk18.0.0-win_x64",
676 "urls": [
677 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-win_x64.zip",
678 "https://cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-win_x64.zip",
679 ],
680 "used_in": [],
681 },
682 "remotejdk18_win_arm64": {
683 "aliases": [
684 "remotejdk18_win_arm64_for_testing",
685 "openjdk18_windows_arm64_archive",
686 ],
687 "archive": "zulu18.28.13-ca-jdk18.0.0-win_aarch64.zip",
688 "sha256": "9b52b259516e4140ee56b91f77750667bffbc543e78ad8c39082449d4c377b54",
689 "strip_prefix": "zulu18.28.13-ca-jdk18.0.0-win_aarch64",
690 "urls": [
691 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-win_aarch64.zip",
692 "https://cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-win_aarch64.zip",
693 ],
694 "used_in": ["test_WORKSPACE_files"],
695 },
Tony Aiuto337e7172020-12-09 10:20:14 -0800696}
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800697
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800698# Add aliased names
699DEPS_BY_NAME = {}
700
701def _create_index():
702 for repo_name in DIST_DEPS:
703 repo = DIST_DEPS[repo_name]
704 DEPS_BY_NAME[repo_name] = repo
705 aliases = repo.get("aliases")
706 if aliases:
707 for alias in aliases:
708 DEPS_BY_NAME[alias] = repo
709
710_create_index()
711
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800712def _gen_workspace_stanza_impl(ctx):
713 if ctx.attr.template and (ctx.attr.preamble or ctx.attr.postamble):
714 fail("Can not use template with either preamble or postamble")
Ivo Listb7411162022-01-14 09:53:01 -0800715 if ctx.attr.use_maybe and ctx.attr.repo_clause:
716 fail("Can not use use_maybe with repo_clause")
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800717
Tony Aiutob15a8b42021-01-08 07:42:57 -0800718 if ctx.attr.use_maybe:
719 repo_clause = """
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800720maybe(
721 http_archive,
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800722 name = "{repo}",
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800723 sha256 = "{sha256}",
724 strip_prefix = {strip_prefix},
725 urls = {urls},
726)
727"""
Ivo Listb7411162022-01-14 09:53:01 -0800728 elif ctx.attr.repo_clause:
729 repo_clause = ctx.attr.repo_clause
Tony Aiutob15a8b42021-01-08 07:42:57 -0800730 else:
731 repo_clause = """
732http_archive(
733 name = "{repo}",
734 sha256 = "{sha256}",
735 strip_prefix = {strip_prefix},
736 urls = {urls},
737)
738"""
739
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800740 repo_stanzas = {}
741 for repo in ctx.attr.repos:
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800742 info = DEPS_BY_NAME[repo]
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800743 strip_prefix = info.get("strip_prefix")
744 if strip_prefix:
745 strip_prefix = "\"%s\"" % strip_prefix
746 else:
747 strip_prefix = "None"
748
749 repo_stanzas["{%s}" % repo] = repo_clause.format(
750 repo = repo,
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800751 sha256 = str(info["sha256"]),
752 strip_prefix = strip_prefix,
753 urls = info["urls"],
754 )
755
756 if ctx.attr.template:
757 ctx.actions.expand_template(
758 output = ctx.outputs.out,
759 template = ctx.file.template,
760 substitutions = repo_stanzas,
761 )
762 else:
763 content = "\n".join([p.strip() for p in ctx.attr.preamble.strip().split("\n")])
764 content += "\n"
765 content += "".join(repo_stanzas.values())
766 content += "\n"
767 content += "\n".join([p.strip() for p in ctx.attr.postamble.strip().split("\n")])
768 content += "\n"
769 ctx.actions.write(ctx.outputs.out, content)
770
771 return [DefaultInfo(files = depset([ctx.outputs.out]))]
772
773gen_workspace_stanza = rule(
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800774 attrs = {
twerth69a0d1a2021-08-12 07:03:10 -0700775 "repos": attr.string_list(doc = "Set of repos to include."),
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800776 "out": attr.output(mandatory = True),
777 "preamble": attr.string(doc = "Preamble."),
twerth69a0d1a2021-08-12 07:03:10 -0700778 "postamble": attr.string(doc = "Set of rules to follow repos."),
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800779 "template": attr.label(
twerth69a0d1a2021-08-12 07:03:10 -0700780 doc = "Template WORKSPACE file. May not be used with preamble or postamble." +
781 "Repo stanzas can be included using the syntax '{repo name}'.",
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800782 allow_single_file = True,
783 mandatory = False,
784 ),
twerth69a0d1a2021-08-12 07:03:10 -0700785 "use_maybe": attr.bool(doc = "Use maybe() invocation instead of http_archive."),
Ivo Listb7411162022-01-14 09:53:01 -0800786 "repo_clause": attr.string(doc = "Use a custom clause for each repository."),
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800787 },
John Cater2cff2ac2021-02-26 07:38:37 -0800788 doc = "Use specifications from DIST_DEPS to generate WORKSPACE http_archive stanzas or to" +
789 "drop them into a template.",
790 implementation = _gen_workspace_stanza_impl,
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800791)