Tony Aiuto | 337e717 | 2020-12-09 10:20:14 -0800 | [diff] [blame] | 1 | # 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 | # |
Googler | bd7a6b9 | 2022-02-24 07:38:58 -0800 | [diff] [blame] | 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
Tony Aiuto | 337e717 | 2020-12-09 10:20:14 -0800 | [diff] [blame] | 8 | # |
| 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 Bonaventura | fc4d9d6 | 2021-12-08 02:17:49 -0800 | [diff] [blame] | 14 | """List the distribution dependencies we need to build Bazel. |
| 15 | |
| 16 | Note for Bazel users: This is not the file that you are looking for. |
| 17 | This is internal source and is not intended to tell you what version |
| 18 | you should use for each dependency. |
| 19 | """ |
Tony Aiuto | 337e717 | 2020-12-09 10:20:14 -0800 | [diff] [blame] | 20 | |
| 21 | DIST_DEPS = { |
Tony Aiuto | 1c9e7ca | 2021-01-05 08:01:21 -0800 | [diff] [blame] | 22 | ######################################## |
| 23 | # |
| 24 | # Runtime language dependencies |
| 25 | # |
| 26 | ######################################## |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 27 | "platforms": { |
aiuto | 676a0c8 | 2022-02-09 08:08:17 -0800 | [diff] [blame] | 28 | "archive": "platforms-0.0.5.tar.gz", |
| 29 | "sha256": "379113459b0feaf6bfbb584a91874c065078aa673222846ac765f86661c27407", |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 30 | "urls": [ |
aiuto | 676a0c8 | 2022-02-09 08:08:17 -0800 | [diff] [blame] | 31 | "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 Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 33 | ], |
| 34 | "used_in": [ |
| 35 | "additional_distfiles", |
| 36 | "test_WORKSPACE_files", |
| 37 | ], |
| 38 | }, |
Chi Wang | 26b94ff | 2021-09-28 23:42:26 -0700 | [diff] [blame] | 39 | "bazelci_rules": { |
| 40 | "archive": "bazelci_rules-1.0.0.tar.gz", |
| 41 | "sha256": "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e", |
| 42 | "strip_prefix": "bazelci_rules-1.0.0", |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 43 | "urls": [ |
Chi Wang | 38a22d1 | 2021-12-06 08:30:58 -0800 | [diff] [blame] | 44 | "https://mirror.bazel.build/github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", |
Chi Wang | 26b94ff | 2021-09-28 23:42:26 -0700 | [diff] [blame] | 45 | "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 46 | ], |
| 47 | "used_in": [ |
| 48 | "additional_distfiles", |
| 49 | ], |
| 50 | }, |
Tony Aiuto | 1c9e7ca | 2021-01-05 08:01:21 -0800 | [diff] [blame] | 51 | # Keep in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/cc_configure.WORKSPACE. |
| 52 | # Keep in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE. |
| 53 | # Note: This is not in sync with src/test/java/com/google/devtools/build/lib/blackbox/framework/BlackBoxTestEnvironment.java. |
| 54 | # Perhaps it should be. |
Tony Aiuto | 337e717 | 2020-12-09 10:20:14 -0800 | [diff] [blame] | 55 | "rules_cc": { |
| 56 | "archive": "b1c40e1de81913a3c40e5948f78719c28152486d.zip", |
| 57 | "sha256": "d0c573b94a6ef20ef6ff20154a23d0efcb409fb0e1ff0979cec318dfe42f0cdd", |
| 58 | "strip_prefix": "rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d", |
| 59 | "urls": [ |
| 60 | "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip", |
| 61 | "https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip", |
| 62 | ], |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 63 | "used_in": [ |
| 64 | "additional_distfiles", |
| 65 | "test_WORKSPACE_files", |
| 66 | ], |
Tony Aiuto | 337e717 | 2020-12-09 10:20:14 -0800 | [diff] [blame] | 67 | }, |
Tony Aiuto | b15a8b4 | 2021-01-08 07:42:57 -0800 | [diff] [blame] | 68 | "rules_java": { |
| 69 | "archive": "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip", |
| 70 | "sha256": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598", |
| 71 | "strip_prefix": "rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178", |
| 72 | "urls": [ |
| 73 | "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip", |
| 74 | "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip", |
| 75 | ], |
| 76 | "used_in": [ |
| 77 | "additional_distfiles", |
| 78 | "test_WORKSPACE_files", |
| 79 | ], |
Tony Aiuto | b15a8b4 | 2021-01-08 07:42:57 -0800 | [diff] [blame] | 80 | }, |
Tony Aiuto | 320bc94 | 2021-01-14 07:43:21 -0800 | [diff] [blame] | 81 | # TODO(aiuto): Update src/test/java/com/google/devtools/build/lib/blackbox/framework/BlackBoxTestEnvironment.java to use |
| 82 | # this dynamically. |
| 83 | "rules_proto": { |
| 84 | "archive": "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz", |
| 85 | "sha256": "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da", |
| 86 | "strip_prefix": "rules_proto-7e4afce6fe62dbff0a4a03450143146f9f2d7488", |
| 87 | "urls": [ |
| 88 | "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz", |
| 89 | "https://github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz", |
| 90 | ], |
| 91 | "used_in": [ |
| 92 | "additional_distfiles", |
| 93 | "test_WORKSPACE_files", |
| 94 | ], |
| 95 | }, |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 96 | ################################################# |
Tony Aiuto | 1c9e7ca | 2021-01-05 08:01:21 -0800 | [diff] [blame] | 97 | # |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 98 | # Dependencies which are part of the Bazel binary |
Tony Aiuto | 1c9e7ca | 2021-01-05 08:01:21 -0800 | [diff] [blame] | 99 | # |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 100 | ################################################# |
| 101 | "com_google_protobuf": { |
Chi Wang | b9e89e3 | 2022-01-20 08:52:53 -0800 | [diff] [blame] | 102 | "archive": "v3.19.2.tar.gz", |
| 103 | "sha256": "4dd35e788944b7686aac898f77df4e9a54da0ca694b8801bd6b2a9ffc1b3085e", |
| 104 | "strip_prefix": "protobuf-3.19.2", |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 105 | "urls": [ |
Chi Wang | b9e89e3 | 2022-01-20 08:52:53 -0800 | [diff] [blame] | 106 | "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.19.2.tar.gz", |
| 107 | "https://github.com/protocolbuffers/protobuf/archive/v3.19.2.tar.gz", |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 108 | ], |
| 109 | "patch_args": ["-p1"], |
Chi Wang | b9e89e3 | 2022-01-20 08:52:53 -0800 | [diff] [blame] | 110 | "patches": ["//third_party/protobuf:3.19.2.patch"], |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 111 | "used_in": [ |
| 112 | "additional_distfiles", |
| 113 | "test_WORKSPACE_files", |
| 114 | ], |
| 115 | }, |
Tony Aiuto | 320bc94 | 2021-01-14 07:43:21 -0800 | [diff] [blame] | 116 | "protocolbuffers": { |
Benjamin Peterson | c01219e | 2021-10-25 02:29:55 -0700 | [diff] [blame] | 117 | "archive": "2de300726a1ba2de9a468468dc5ff9ed17a3215f.tar.gz", |
| 118 | "sha256": "6a5f67874af66b239b709c572ac1a5a00fdb1b29beaf13c3e6f79b1ba10dc7c4", |
Tony Aiuto | 320bc94 | 2021-01-14 07:43:21 -0800 | [diff] [blame] | 119 | "urls": [ |
Benjamin Peterson | c01219e | 2021-10-25 02:29:55 -0700 | [diff] [blame] | 120 | "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/2de300726a1ba2de9a468468dc5ff9ed17a3215f.tar.gz", |
| 121 | "https://github.com/protocolbuffers/upb/archive/2de300726a1ba2de9a468468dc5ff9ed17a3215f.tar.gz", |
Tony Aiuto | 320bc94 | 2021-01-14 07:43:21 -0800 | [diff] [blame] | 122 | ], |
| 123 | "used_in": [ |
| 124 | "additional_distfiles", |
| 125 | "test_WORKSPACE_files", |
| 126 | ], |
| 127 | }, |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 128 | "com_github_grpc_grpc": { |
Benjamin Peterson | c01219e | 2021-10-25 02:29:55 -0700 | [diff] [blame] | 129 | "archive": "v1.41.0.tar.gz", |
| 130 | "sha256": "e5fb30aae1fa1cffa4ce00aa0bbfab908c0b899fcf0bbc30e268367d660d8656", |
| 131 | "strip_prefix": "grpc-1.41.0", |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 132 | "urls": [ |
Benjamin Peterson | c01219e | 2021-10-25 02:29:55 -0700 | [diff] [blame] | 133 | "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.41.0.tar.gz", |
| 134 | "https://github.com/grpc/grpc/archive/v1.41.0.tar.gz", |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 135 | ], |
| 136 | "patch_args": ["-p1"], |
| 137 | "patches": [ |
Benjamin Peterson | c01219e | 2021-10-25 02:29:55 -0700 | [diff] [blame] | 138 | "//third_party/grpc:grpc_1.41.0.patch", |
Niyas Sait | 0ba4caa | 2022-02-02 10:29:06 -0800 | [diff] [blame] | 139 | "//third_party/grpc:grpc_1.41.0.win_arm64.patch", |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 140 | ], |
| 141 | "used_in": [ |
| 142 | "additional_distfiles", |
| 143 | "test_WORKSPACE_files", |
| 144 | ], |
| 145 | }, |
| 146 | "c-ares": { |
| 147 | "archive": "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz", |
| 148 | "sha256": "e8c2751ddc70fed9dc6f999acd92e232d5846f009ee1674f8aee81f19b2b915a", |
| 149 | "urls": [ |
| 150 | "https://mirror.bazel.build/github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz", |
| 151 | "https://github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz", |
| 152 | ], |
| 153 | "used_in": [ |
| 154 | "additional_distfiles", |
| 155 | "test_WORKSPACE_files", |
| 156 | ], |
| 157 | }, |
| 158 | "re2": { |
| 159 | "archive": "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz", |
| 160 | "sha256": "9f385e146410a8150b6f4cb1a57eab7ec806ced48d427554b1e754877ff26c3e", |
| 161 | "urls": [ |
| 162 | "https://mirror.bazel.build/github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz", |
| 163 | "https://github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz", |
| 164 | ], |
| 165 | "used_in": [ |
| 166 | "additional_distfiles", |
| 167 | "test_WORKSPACE_files", |
| 168 | ], |
| 169 | }, |
| 170 | "abseil-cpp": { |
Benjamin Peterson | c01219e | 2021-10-25 02:29:55 -0700 | [diff] [blame] | 171 | "archive": "997aaf3a28308eba1b9156aa35ab7bca9688e9f6.tar.gz", |
| 172 | "sha256": "35f22ef5cb286f09954b7cc4c85b5a3f6221c9d4df6b8c4a1e9d399555b366ee", |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 173 | "urls": [ |
Benjamin Peterson | c01219e | 2021-10-25 02:29:55 -0700 | [diff] [blame] | 174 | "https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/997aaf3a28308eba1b9156aa35ab7bca9688e9f6.tar.gz", |
| 175 | "https://github.com/abseil/abseil-cpp/archive/997aaf3a28308eba1b9156aa35ab7bca9688e9f6.tar.gz", |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 176 | ], |
| 177 | "used_in": [ |
| 178 | "additional_distfiles", |
| 179 | "test_WORKSPACE_files", |
| 180 | ], |
| 181 | }, |
Alessandro Patti | 6da8086 | 2021-11-11 22:49:37 -0800 | [diff] [blame] | 182 | "zstd-jni": { |
| 183 | "archive": "v1.5.0-4.zip", |
| 184 | "patch_args": ["-p1"], |
| 185 | "patches": [ |
| 186 | "//third_party:zstd-jni/Native.java.patch", |
| 187 | ], |
| 188 | "sha256": "d320d59b89a163c5efccbe4915ae6a49883ce653cdc670643dfa21c6063108e4", |
| 189 | "urls": [ |
| 190 | "https://mirror.bazel.build/github.com/luben/zstd-jni/archive/v1.5.0-4.zip", |
| 191 | "https://github.com/luben/zstd-jni/archive/v1.5.0-4.zip", |
| 192 | ], |
| 193 | "used_in": [ |
| 194 | "additional_distfiles", |
| 195 | ], |
| 196 | }, |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 197 | ################################################### |
| 198 | # |
| 199 | # Build time dependencies for testing and packaging |
| 200 | # |
| 201 | ################################################### |
Tony Aiuto | 2b7ec5c | 2021-01-11 07:50:26 -0800 | [diff] [blame] | 202 | "bazel_skylib": { |
| 203 | "archive": "bazel-skylib-1.0.3.tar.gz", |
| 204 | "sha256": "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c", |
| 205 | "urls": [ |
| 206 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", |
| 207 | "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", |
| 208 | ], |
| 209 | "used_in": [ |
| 210 | "additional_distfiles", |
| 211 | "test_WORKSPACE_files", |
| 212 | ], |
| 213 | }, |
| 214 | "io_bazel_skydoc": { |
| 215 | "archive": "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz", |
| 216 | "sha256": "5a725b777976b77aa122b707d1b6f0f39b6020f66cd427bb111a585599c857b1", |
| 217 | "urls": [ |
| 218 | "https://mirror.bazel.build/github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz", |
| 219 | "https://github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz", |
| 220 | ], |
| 221 | "used_in": [ |
| 222 | "additional_distfiles", |
| 223 | ], |
| 224 | "strip_prefix": "stardoc-1ef781ced3b1443dca3ed05dec1989eca1a4e1cd", |
| 225 | }, |
Tony Aiuto | 337e717 | 2020-12-09 10:20:14 -0800 | [diff] [blame] | 226 | "rules_pkg": { |
Tony Aiuto | 99079b3 | 2021-04-06 06:41:17 -0700 | [diff] [blame] | 227 | "archive": "rules_pkg-0.4.0.tar.gz", |
| 228 | "sha256": "038f1caa773a7e35b3663865ffb003169c6a71dc995e39bf4815792f385d837d", |
Tony Aiuto | 337e717 | 2020-12-09 10:20:14 -0800 | [diff] [blame] | 229 | "urls": [ |
Tony Aiuto | 99079b3 | 2021-04-06 06:41:17 -0700 | [diff] [blame] | 230 | "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz", |
| 231 | "https://github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz", |
Tony Aiuto | 337e717 | 2020-12-09 10:20:14 -0800 | [diff] [blame] | 232 | ], |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 233 | "used_in": [ |
| 234 | "additional_distfiles", |
| 235 | ], |
Tony Aiuto | 337e717 | 2020-12-09 10:20:14 -0800 | [diff] [blame] | 236 | }, |
Tony Aiuto | 1c9e7ca | 2021-01-05 08:01:21 -0800 | [diff] [blame] | 237 | # for Stardoc |
| 238 | "io_bazel_rules_sass": { |
| 239 | "archive": "1.25.0.zip", |
| 240 | "sha256": "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647", |
| 241 | "strip_prefix": "rules_sass-1.25.0", |
| 242 | "urls": [ |
| 243 | "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip", |
| 244 | "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip", |
| 245 | ], |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 246 | "used_in": [ |
| 247 | "additional_distfiles", |
| 248 | ], |
Tony Aiuto | 1c9e7ca | 2021-01-05 08:01:21 -0800 | [diff] [blame] | 249 | }, |
| 250 | # for Stardoc |
| 251 | "build_bazel_rules_nodejs": { |
| 252 | "archive": "rules_nodejs-2.2.2.tar.gz", |
| 253 | "sha256": "f2194102720e662dbf193546585d705e645314319554c6ce7e47d8b59f459e9c", |
| 254 | "urls": [ |
| 255 | "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/2.2.2/rules_nodejs-2.2.2.tar.gz", |
| 256 | "https://github.com/bazelbuild/rules_nodejs/releases/download/2.2.2/rules_nodejs-2.2.2.tar.gz", |
| 257 | ], |
Tony Aiuto | e973aef | 2021-01-11 00:32:51 -0800 | [diff] [blame] | 258 | "used_in": [ |
| 259 | "additional_distfiles", |
| 260 | ], |
Tony Aiuto | 1c9e7ca | 2021-01-05 08:01:21 -0800 | [diff] [blame] | 261 | }, |
menny | f431b0c | 2021-01-13 09:18:29 -0800 | [diff] [blame] | 262 | "desugar_jdk_libs": { |
Menny Even Danan | 29cfb0b | 2021-03-31 15:21:30 -0700 | [diff] [blame] | 263 | # Commit 5847d6a06302136d95a14b4cbd4b55a9c9f1436e of 2021-03-10 |
| 264 | "archive": "5847d6a06302136d95a14b4cbd4b55a9c9f1436e.zip", |
| 265 | "sha256": "299452e6f4a4981b2e6d22357f7332713382a63e4c137f5fd6b89579f6d610cb", |
| 266 | "strip_prefix": "desugar_jdk_libs-5847d6a06302136d95a14b4cbd4b55a9c9f1436e", |
menny | f431b0c | 2021-01-13 09:18:29 -0800 | [diff] [blame] | 267 | "urls": [ |
Menny Even Danan | 29cfb0b | 2021-03-31 15:21:30 -0700 | [diff] [blame] | 268 | "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/5847d6a06302136d95a14b4cbd4b55a9c9f1436e.zip", |
| 269 | "https://github.com/google/desugar_jdk_libs/archive/5847d6a06302136d95a14b4cbd4b55a9c9f1436e.zip", |
menny | f431b0c | 2021-01-13 09:18:29 -0800 | [diff] [blame] | 270 | ], |
| 271 | "used_in": [ |
| 272 | "additional_distfiles", |
| 273 | ], |
| 274 | }, |
aiuto | bbeb1da | 2021-01-15 06:50:56 -0800 | [diff] [blame] | 275 | "remote_coverage_tools": { |
| 276 | "archive": "coverage_output_generator-v2.5.zip", |
| 277 | "sha256": "cd14f1cb4559e4723e63b7e7b06d09fcc3bd7ba58d03f354cdff1439bd936a7d", |
| 278 | "urls": [ |
| 279 | "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.5.zip", |
| 280 | ], |
| 281 | "used_in": [ |
| 282 | "additional_distfiles", |
| 283 | "test_WORKSPACE_files", |
| 284 | ], |
| 285 | }, |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 286 | "remote_java_tools": { |
John Cater | 2cff2ac | 2021-02-26 07:38:37 -0800 | [diff] [blame] | 287 | "aliases": [ |
| 288 | "remote_java_tools_test", |
| 289 | "remote_java_tools_for_testing", |
| 290 | ], |
hvadehra | d703b7b | 2021-11-18 12:24:25 -0800 | [diff] [blame] | 291 | "archive": "java_tools-v11.6.zip", |
| 292 | "sha256": "a7ac5922ee01e8b8fcb546ffc264ef314d0a0c679328b7fa4c432e5f54a86067", |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 293 | "urls": [ |
hvadehra | d703b7b | 2021-11-18 12:24:25 -0800 | [diff] [blame] | 294 | "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.6/java_tools-v11.6.zip", |
| 295 | "https://github.com/bazelbuild/java_tools/releases/download/java_v11.6/java_tools-v11.6.zip", |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 296 | ], |
| 297 | "used_in": [ |
| 298 | "additional_distfiles", |
| 299 | "test_WORKSPACE_files", |
| 300 | ], |
| 301 | }, |
| 302 | "remote_java_tools_linux": { |
John Cater | 2cff2ac | 2021-02-26 07:38:37 -0800 | [diff] [blame] | 303 | "aliases": [ |
| 304 | "remote_java_tools_test_linux", |
| 305 | "remote_java_tools_linux_for_testing", |
| 306 | ], |
hvadehra | d703b7b | 2021-11-18 12:24:25 -0800 | [diff] [blame] | 307 | "archive": "java_tools_linux-v11.6.zip", |
| 308 | "sha256": "15da4f84a7d39cd179acf3035d9def638eea6ba89a0ed8f4e8a8e6e1d6c8e328", |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 309 | "urls": [ |
hvadehra | d703b7b | 2021-11-18 12:24:25 -0800 | [diff] [blame] | 310 | "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.6/java_tools_linux-v11.6.zip", |
| 311 | "https://github.com/bazelbuild/java_tools/releases/download/java_v11.6/java_tools_linux-v11.6.zip", |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 312 | ], |
| 313 | "used_in": [ |
| 314 | "additional_distfiles", |
| 315 | "test_WORKSPACE_files", |
| 316 | ], |
| 317 | }, |
| 318 | "remote_java_tools_windows": { |
John Cater | 2cff2ac | 2021-02-26 07:38:37 -0800 | [diff] [blame] | 319 | "aliases": [ |
| 320 | "remote_java_tools_test_windows", |
| 321 | "remote_java_tools_windows_for_testing", |
| 322 | ], |
hvadehra | d703b7b | 2021-11-18 12:24:25 -0800 | [diff] [blame] | 323 | "archive": "java_tools_windows-v11.6.zip", |
| 324 | "sha256": "939f9d91f0df02851bbad8f5b1d26d24011329394cafe5668c1234e31ac2a1f7", |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 325 | "urls": [ |
hvadehra | d703b7b | 2021-11-18 12:24:25 -0800 | [diff] [blame] | 326 | "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.6/java_tools_windows-v11.6.zip", |
| 327 | "https://github.com/bazelbuild/java_tools/releases/download/java_v11.6/java_tools_windows-v11.6.zip", |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 328 | ], |
| 329 | "used_in": [ |
| 330 | "additional_distfiles", |
| 331 | "test_WORKSPACE_files", |
| 332 | ], |
| 333 | }, |
| 334 | "remote_java_tools_darwin": { |
John Cater | 2cff2ac | 2021-02-26 07:38:37 -0800 | [diff] [blame] | 335 | "aliases": [ |
| 336 | "remote_java_tools_test_darwin", |
| 337 | "remote_java_tools_darwin_for_testing", |
| 338 | ], |
hvadehra | d703b7b | 2021-11-18 12:24:25 -0800 | [diff] [blame] | 339 | "archive": "java_tools_darwin-v11.6.zip", |
| 340 | "sha256": "f17ee54582b61f1ebd84c8fa2c54df796914cfbaac3cb821fb1286b55b080bc0", |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 341 | "urls": [ |
hvadehra | d703b7b | 2021-11-18 12:24:25 -0800 | [diff] [blame] | 342 | "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.6/java_tools_darwin-v11.6.zip", |
| 343 | "https://github.com/bazelbuild/java_tools/releases/download/java_v11.6/java_tools_darwin-v11.6.zip", |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 344 | ], |
| 345 | "used_in": [ |
| 346 | "additional_distfiles", |
| 347 | "test_WORKSPACE_files", |
| 348 | ], |
| 349 | }, |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 350 | "remotejdk11_linux": { |
| 351 | "aliases": [ |
| 352 | "remotejdk11_linux_for_testing", |
| 353 | "openjdk11_linux_archive", |
cushon | 095f1e2 | 2022-02-08 10:54:53 -0800 | [diff] [blame] | 354 | "openjdk_linux_vanilla", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 355 | ], |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 356 | "archive": "zulu11.52.13-ca-jdk11.0.13-linux_x64.tar.gz", |
| 357 | "sha256": "77a126669b26b3a89e0117b0f28cddfcd24fcd7699b2c1d35f921487148b9a9f", |
| 358 | "strip_prefix": "zulu11.52.13-ca-jdk11.0.13-linux_x64", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 359 | "urls": [ |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 360 | "https://mirror.bazel.build/zulu/bin/zulu11.52.13-ca-jdk11.0.13-linux_x64.tar.gz", |
| 361 | "https://cdn.azul.com/zulu/bin/zulu11.52.13-ca-jdk11.0.13-linux_x64.tar.gz", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 362 | ], |
| 363 | "used_in": ["test_WORKSPACE_files"], |
| 364 | }, |
| 365 | "remotejdk11_linux_aarch64": { |
| 366 | "aliases": [ |
| 367 | "remotejdk11_linux_aarch64_for_testing", |
cushon | 095f1e2 | 2022-02-08 10:54:53 -0800 | [diff] [blame] | 368 | "openjdk_linux_aarch64_vanilla", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 369 | ], |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 370 | "archive": "zulu11.52.13-ca-jdk11.0.13-linux_aarch64.tar.gz", |
| 371 | "sha256": "6be187379c26506a4b804b4f734c17e554aebe4204bde58a10b429054cc9cf9f", |
| 372 | "strip_prefix": "zulu11.52.13-ca-jdk11.0.13-linux_aarch64", |
| 373 | "urls": [ |
| 374 | "https://mirror.bazel.build/zulu-embedded/bin/zulu11.52.13-ca-jdk11.0.13-linux_aarch64.tar.gz", |
| 375 | "https://cdn.azul.com/zulu-embedded/bin/zulu11.52.13-ca-jdk11.0.13-linux_aarch64.tar.gz", |
| 376 | ], |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 377 | "used_in": ["test_WORKSPACE_files"], |
| 378 | }, |
| 379 | "remotejdk11_linux_ppc64le": { |
| 380 | "aliases": [ |
| 381 | "remotejdk11_linux_ppc64le_for_testing", |
cushon | 095f1e2 | 2022-02-08 10:54:53 -0800 | [diff] [blame] | 382 | "openjdk_linux_ppc64le_vanilla", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 383 | ], |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 384 | "sha256": "82f14cda71cff99c878bf8400598a87235adb6c81b0337f7077c27e5cac1190c", |
| 385 | "strip_prefix": "jdk-11.0.13+8", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 386 | "urls": [ |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 387 | "https://mirror.bazel.build/github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13+8/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.13_8.tar.gz", |
| 388 | "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13+8/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.13_8.tar.gz", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 389 | ], |
| 390 | "used_in": [], |
| 391 | }, |
| 392 | "remotejdk11_linux_s390x": { |
| 393 | "aliases": [ |
| 394 | "remotejdk11_linux_s390x_for_testing", |
cushon | 095f1e2 | 2022-02-08 10:54:53 -0800 | [diff] [blame] | 395 | "openjdk_linux_s390x_vanilla", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 396 | ], |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 397 | "sha256": "9d280d86fdf6a7d9e5cbf54dc37f1d6d09dfe676ff5c684802fdfa3932eee63e", |
| 398 | "strip_prefix": "jdk-11.0.13+8", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 399 | "urls": [ |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 400 | "https://mirror.bazel.build/github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13+8/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.13_8.tar.gz", |
| 401 | "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13+8/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.13_8.tar.gz", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 402 | ], |
| 403 | "used_in": [], |
| 404 | }, |
| 405 | "remotejdk11_macos": { |
| 406 | "aliases": [ |
| 407 | "remotejdk11_macos_for_testing", |
cushon | 095f1e2 | 2022-02-08 10:54:53 -0800 | [diff] [blame] | 408 | "openjdk_macos_x86_64_vanilla", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 409 | "openjdk11_darwin_archive", |
| 410 | ], |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 411 | "archive": "zulu11.52.13-ca-jdk11.0.13-macosx_x64.tar.gz", |
| 412 | "sha256": "e27a11a6e970ba6f597ecc957c0cdb502ff8990c243a6abd9df1e3413a0a3e44", |
| 413 | "strip_prefix": "zulu11.52.13-ca-jdk11.0.13-macosx_x64", |
| 414 | "urls": [ |
| 415 | "https://mirror.bazel.build/zulu/bin/zulu11.52.13-ca-jdk11.0.13-macosx_x64.tar.gz", |
| 416 | "https://cdn.azul.com/zulu/bin/zulu11.52.13-ca-jdk11.0.13-macosx_x64.tar.gz", |
| 417 | ], |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 418 | "used_in": ["test_WORKSPACE_files"], |
| 419 | }, |
| 420 | "remotejdk11_macos_aarch64": { |
| 421 | "aliases": [ |
cushon | 095f1e2 | 2022-02-08 10:54:53 -0800 | [diff] [blame] | 422 | "openjdk_macos_aarch64_vanilla", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 423 | "remotejdk11_macos_aarch64_for_testing", |
| 424 | "openjdk11_darwin_aarch64_archive", |
| 425 | ], |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 426 | "archive": "zulu11.52.13-ca-jdk11.0.13-macosx_aarch64.tar.gz", |
| 427 | "sha256": "eb8d593a61a9461a554e7bb1d67bca0f94242273f1d01a13f58c20c269b35fe5", |
| 428 | "strip_prefix": "zulu11.52.13-ca-jdk11.0.13-macosx_aarch64", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 429 | "urls": [ |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 430 | "https://mirror.bazel.build/zulu/bin/zulu11.52.13-ca-jdk11.0.13-macosx_aarch64.tar.gz", |
| 431 | "https://cdn.azul.com/zulu/bin/zulu11.52.13-ca-jdk11.0.13-macosx_aarch64.tar.gz", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 432 | ], |
| 433 | "used_in": ["test_WORKSPACE_files"], |
| 434 | }, |
| 435 | "remotejdk11_win": { |
| 436 | "aliases": [ |
| 437 | "remotejdk11_win_for_testing", |
| 438 | "openjdk11_windows_archive", |
cushon | 095f1e2 | 2022-02-08 10:54:53 -0800 | [diff] [blame] | 439 | "openjdk_win_vanilla", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 440 | ], |
Liam Miller-Cushon | 7de1571 | 2022-01-25 11:34:44 -0800 | [diff] [blame] | 441 | "archive": "zulu11.52.13-ca-jdk11.0.13-win_x64.zip", |
| 442 | "sha256": "49289cc181504a01c946d5a66a5c904f8e6d912a2226dd82db62eb37e6c0a9d9", |
| 443 | "strip_prefix": "zulu11.52.13-ca-jdk11.0.13-win_x64", |
| 444 | "urls": [ |
| 445 | "https://mirror.bazel.build/zulu/bin/zulu11.52.13-ca-jdk11.0.13-win_x64.zip", |
| 446 | "https://cdn.azul.com/zulu/bin/zulu11.52.13-ca-jdk11.0.13-win_x64.zip", |
| 447 | ], |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 448 | "used_in": ["test_WORKSPACE_files"], |
| 449 | }, |
cushon | 095f1e2 | 2022-02-08 10:54:53 -0800 | [diff] [blame] | 450 | "remotejdk17_win_arm64": { |
| 451 | "aliases": [ |
Niyas Sait | b602425 | 2022-02-10 06:59:31 -0800 | [diff] [blame] | 452 | "remotejdk17_win_arm64_for_testing", |
| 453 | "openjdk17_windows_arm64_archive", |
cushon | 095f1e2 | 2022-02-08 10:54:53 -0800 | [diff] [blame] | 454 | "openjdk_win_arm64_vanilla", |
| 455 | ], |
| 456 | "archive": "zulu17.30.15-ca-jdk17.0.1-win_aarch64.zip", |
| 457 | "sha256": "811d7e7591bac4f081dfb00ba6bd15b6fc5969e1f89f0f327ef75147027c3877", |
| 458 | "strip_prefix": "zulu17.30.15-ca-jdk17.0.1-win_aarch64", |
| 459 | "urls": [ |
| 460 | "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.30.15-ca-jdk17.0.1-win_aarch64.zip", |
| 461 | "https://cdn.azul.com/zulu/bin/zulu17.30.15-ca-jdk17.0.1-win_aarch64.zip", |
| 462 | ], |
| 463 | "used_in": ["test_WORKSPACE_files"], |
| 464 | }, |
Niyas Sait | b602425 | 2022-02-10 06:59:31 -0800 | [diff] [blame] | 465 | "remotejdk11_win_arm64": { |
| 466 | "aliases": [ |
| 467 | "remotejdk11_win_arm64_for_testing", |
| 468 | "openjdk11_windows_arm64_archive", |
| 469 | ], |
| 470 | "archive": "microsoft-jdk-11.0.13.8.1-windows-aarch64.zip", |
| 471 | "sha256": "b8a28e6e767d90acf793ea6f5bed0bb595ba0ba5ebdf8b99f395266161e53ec2", |
| 472 | "strip_prefix": "jdk-11.0.13+8", |
| 473 | "urls": [ |
| 474 | "https://mirror.bazel.build/aka.ms/download-jdk/microsoft-jdk-11.0.13.8.1-windows-aarch64.zip", |
| 475 | ], |
| 476 | "used_in": ["test_WORKSPACE_files"], |
| 477 | }, |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 478 | "remotejdk17_linux": { |
| 479 | "aliases": [ |
| 480 | "remotejdk17_linux_for_testing", |
| 481 | "openjdk17_linux_archive", |
| 482 | ], |
David Ostrovsky | fbb0958 | 2022-02-08 08:00:11 -0800 | [diff] [blame] | 483 | "sha256": "73d5c4bae20325ca41b606f7eae64669db3aac638c5b3ead4a975055846ad6de", |
| 484 | "strip_prefix": "zulu17.32.13-ca-jdk17.0.2-linux_x64", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 485 | "urls": [ |
David Ostrovsky | fbb0958 | 2022-02-08 08:00:11 -0800 | [diff] [blame] | 486 | "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-linux_x64.tar.gz", |
| 487 | "https://cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-linux_x64.tar.gz", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 488 | ], |
| 489 | "used_in": [], |
| 490 | }, |
| 491 | "remotejdk17_macos": { |
| 492 | "aliases": [ |
| 493 | "remotejdk17_macos_for_testing", |
| 494 | "openjdk17_darwin_archive", |
| 495 | ], |
David Ostrovsky | fbb0958 | 2022-02-08 08:00:11 -0800 | [diff] [blame] | 496 | "sha256": "89d04b2d99b05dcb25114178e65f6a1c5ca742e125cab0a63d87e7e42f3fcb80", |
| 497 | "strip_prefix": "zulu17.32.13-ca-jdk17.0.2-macosx_x64", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 498 | "urls": [ |
David Ostrovsky | fbb0958 | 2022-02-08 08:00:11 -0800 | [diff] [blame] | 499 | "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-macosx_x64.tar.gz", |
| 500 | "https://cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-macosx_x64.tar.gz", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 501 | ], |
| 502 | "used_in": [], |
| 503 | }, |
| 504 | "remotejdk17_macos_aarch64": { |
| 505 | "aliases": [ |
| 506 | "remotejdk17_macos_aarch64_for_testing", |
| 507 | "openjdk17_darwin_aarch64_archive", |
| 508 | ], |
David Ostrovsky | fbb0958 | 2022-02-08 08:00:11 -0800 | [diff] [blame] | 509 | "sha256": "54247dde248ffbcd3c048675504b1c503b81daf2dc0d64a79e353c48d383c977", |
| 510 | "strip_prefix": "zulu17.32.13-ca-jdk17.0.2-macosx_aarch64", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 511 | "urls": [ |
David Ostrovsky | fbb0958 | 2022-02-08 08:00:11 -0800 | [diff] [blame] | 512 | "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-macosx_aarch64.tar.gz", |
| 513 | "https://cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-macosx_aarch64.tar.gz", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 514 | ], |
| 515 | "used_in": [], |
| 516 | }, |
| 517 | "remotejdk17_win": { |
| 518 | "aliases": [ |
| 519 | "remotejdk17_win_for_testing", |
| 520 | "openjdk17_windows_archive", |
| 521 | ], |
David Ostrovsky | fbb0958 | 2022-02-08 08:00:11 -0800 | [diff] [blame] | 522 | "sha256": "e965aa0ea7a0661a3446cf8f10ee00684b851f883b803315289f26b4aa907fdb", |
| 523 | "strip_prefix": "zulu17.32.13-ca-jdk17.0.2-win_x64", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 524 | "urls": [ |
David Ostrovsky | fbb0958 | 2022-02-08 08:00:11 -0800 | [diff] [blame] | 525 | "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-win_x64.zip", |
| 526 | "https://cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-win_x64.zip", |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 527 | ], |
| 528 | "used_in": [], |
| 529 | }, |
Tony Aiuto | 337e717 | 2020-12-09 10:20:14 -0800 | [diff] [blame] | 530 | } |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 531 | |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 532 | # Add aliased names |
| 533 | DEPS_BY_NAME = {} |
| 534 | |
| 535 | def _create_index(): |
| 536 | for repo_name in DIST_DEPS: |
| 537 | repo = DIST_DEPS[repo_name] |
| 538 | DEPS_BY_NAME[repo_name] = repo |
| 539 | aliases = repo.get("aliases") |
| 540 | if aliases: |
| 541 | for alias in aliases: |
| 542 | DEPS_BY_NAME[alias] = repo |
| 543 | |
| 544 | _create_index() |
| 545 | |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 546 | def _gen_workspace_stanza_impl(ctx): |
| 547 | if ctx.attr.template and (ctx.attr.preamble or ctx.attr.postamble): |
| 548 | fail("Can not use template with either preamble or postamble") |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 549 | if ctx.attr.use_maybe and ctx.attr.repo_clause: |
| 550 | fail("Can not use use_maybe with repo_clause") |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 551 | |
Tony Aiuto | b15a8b4 | 2021-01-08 07:42:57 -0800 | [diff] [blame] | 552 | if ctx.attr.use_maybe: |
| 553 | repo_clause = """ |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 554 | maybe( |
| 555 | http_archive, |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 556 | name = "{repo}", |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 557 | sha256 = "{sha256}", |
| 558 | strip_prefix = {strip_prefix}, |
| 559 | urls = {urls}, |
| 560 | ) |
| 561 | """ |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 562 | elif ctx.attr.repo_clause: |
| 563 | repo_clause = ctx.attr.repo_clause |
Tony Aiuto | b15a8b4 | 2021-01-08 07:42:57 -0800 | [diff] [blame] | 564 | else: |
| 565 | repo_clause = """ |
| 566 | http_archive( |
| 567 | name = "{repo}", |
| 568 | sha256 = "{sha256}", |
| 569 | strip_prefix = {strip_prefix}, |
| 570 | urls = {urls}, |
| 571 | ) |
| 572 | """ |
| 573 | |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 574 | repo_stanzas = {} |
| 575 | for repo in ctx.attr.repos: |
Tony Aiuto | 6a3d5f1 | 2021-01-12 13:38:32 -0800 | [diff] [blame] | 576 | info = DEPS_BY_NAME[repo] |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 577 | strip_prefix = info.get("strip_prefix") |
| 578 | if strip_prefix: |
| 579 | strip_prefix = "\"%s\"" % strip_prefix |
| 580 | else: |
| 581 | strip_prefix = "None" |
| 582 | |
| 583 | repo_stanzas["{%s}" % repo] = repo_clause.format( |
| 584 | repo = repo, |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 585 | sha256 = str(info["sha256"]), |
| 586 | strip_prefix = strip_prefix, |
| 587 | urls = info["urls"], |
| 588 | ) |
| 589 | |
| 590 | if ctx.attr.template: |
| 591 | ctx.actions.expand_template( |
| 592 | output = ctx.outputs.out, |
| 593 | template = ctx.file.template, |
| 594 | substitutions = repo_stanzas, |
| 595 | ) |
| 596 | else: |
| 597 | content = "\n".join([p.strip() for p in ctx.attr.preamble.strip().split("\n")]) |
| 598 | content += "\n" |
| 599 | content += "".join(repo_stanzas.values()) |
| 600 | content += "\n" |
| 601 | content += "\n".join([p.strip() for p in ctx.attr.postamble.strip().split("\n")]) |
| 602 | content += "\n" |
| 603 | ctx.actions.write(ctx.outputs.out, content) |
| 604 | |
| 605 | return [DefaultInfo(files = depset([ctx.outputs.out]))] |
| 606 | |
| 607 | gen_workspace_stanza = rule( |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 608 | attrs = { |
twerth | 69a0d1a | 2021-08-12 07:03:10 -0700 | [diff] [blame] | 609 | "repos": attr.string_list(doc = "Set of repos to include."), |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 610 | "out": attr.output(mandatory = True), |
| 611 | "preamble": attr.string(doc = "Preamble."), |
twerth | 69a0d1a | 2021-08-12 07:03:10 -0700 | [diff] [blame] | 612 | "postamble": attr.string(doc = "Set of rules to follow repos."), |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 613 | "template": attr.label( |
twerth | 69a0d1a | 2021-08-12 07:03:10 -0700 | [diff] [blame] | 614 | doc = "Template WORKSPACE file. May not be used with preamble or postamble." + |
| 615 | "Repo stanzas can be included using the syntax '{repo name}'.", |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 616 | allow_single_file = True, |
| 617 | mandatory = False, |
| 618 | ), |
twerth | 69a0d1a | 2021-08-12 07:03:10 -0700 | [diff] [blame] | 619 | "use_maybe": attr.bool(doc = "Use maybe() invocation instead of http_archive."), |
Ivo List | b741116 | 2022-01-14 09:53:01 -0800 | [diff] [blame] | 620 | "repo_clause": attr.string(doc = "Use a custom clause for each repository."), |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 621 | }, |
John Cater | 2cff2ac | 2021-02-26 07:38:37 -0800 | [diff] [blame] | 622 | doc = "Use specifications from DIST_DEPS to generate WORKSPACE http_archive stanzas or to" + |
| 623 | "drop them into a template.", |
| 624 | implementation = _gen_workspace_stanza_impl, |
Tony Aiuto | 3b2d310 | 2021-01-07 03:40:14 -0800 | [diff] [blame] | 625 | ) |