Skip to content

Commit f82fc5b

Browse files
aiutocopybara-github
authored andcommitted
Add some package version and license declarations to Bazel's distdir_deps.
- This moves us closer to a goal of an accurate SBOM. - It skips some hard to interpret things, like what are the package names and versions for all the remote java tools. Note that license_kinds were added for some repositories, but not others. That is OK. We do not want to add them for repositories that we trust and already have their own, like rules_pkg. PiperOrigin-RevId: 493859885 Change-Id: I9efbd5d6eb56efaaef289bf264205f2996d255ef
1 parent 66b58ee commit f82fc5b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

distdir_deps.bzl

+38
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ DIST_DEPS = {
3535
"additional_distfiles",
3636
"test_WORKSPACE_files",
3737
],
38+
"package_version": "0.0.5",
3839
},
3940
"bazelci_rules": {
4041
"archive": "bazelci_rules-1.0.0.tar.gz",
@@ -47,6 +48,7 @@ DIST_DEPS = {
4748
"used_in": [
4849
"additional_distfiles",
4950
],
51+
"package_version": "1.0.0",
5052
},
5153
# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/cc_configure.WORKSPACE.
5254
# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
@@ -59,6 +61,7 @@ DIST_DEPS = {
5961
"additional_distfiles",
6062
"test_WORKSPACE_files",
6163
],
64+
"package_version": "0.0.2",
6265
},
6366
"rules_java": {
6467
"archive": "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
@@ -72,6 +75,11 @@ DIST_DEPS = {
7275
"additional_distfiles",
7376
"test_WORKSPACE_files",
7477
],
78+
"license_kinds": [
79+
"@rules_license//licenses/spdx:Apache-2.0",
80+
],
81+
# TODO(bazel-team): Update to a newer version
82+
"package_version": "2019-06-28",
7583
},
7684
# Used in src/test/java/com/google/devtools/build/lib/blackbox/framework/blackbox.WORKSAPCE
7785
"rules_proto": {
@@ -110,6 +118,11 @@ DIST_DEPS = {
110118
"additional_distfiles",
111119
"test_WORKSPACE_files",
112120
],
121+
"license_kinds": [
122+
"@rules_license//licenses/generic:notice",
123+
],
124+
"license_text": "LICENSE",
125+
"package_version": "3.19.6",
113126
},
114127
"com_github_grpc_grpc": {
115128
"archive": "v1.47.0.tar.gz",
@@ -128,6 +141,7 @@ DIST_DEPS = {
128141
"additional_distfiles",
129142
"test_WORKSPACE_files",
130143
],
144+
"package_version": "1.47.0",
131145
},
132146
"com_github_cncf_udpa": {
133147
"archive": "cb28da3451f158a947dfc45090fe92b07b243bc1.tar.gz",
@@ -174,6 +188,7 @@ DIST_DEPS = {
174188
"additional_distfiles",
175189
"test_WORKSPACE_files",
176190
],
191+
"package_version": "0.24.0",
177192
},
178193
"com_google_googleapis": {
179194
"archive": "2f9af297c84c55c8b871ba4495e01ade42476c92.tar.gz",
@@ -187,6 +202,10 @@ DIST_DEPS = {
187202
"additional_distfiles",
188203
"test_WORKSPACE_files",
189204
],
205+
"license_kinds": [
206+
"@rules_license//licenses/spdx:Apache-2.0",
207+
],
208+
"license_text": "LICENSE",
190209
},
191210
"upb": {
192211
"archive": "a5477045acaa34586420942098f5fecd3570f577.tar.gz",
@@ -203,6 +222,7 @@ DIST_DEPS = {
203222
"license_kinds": [
204223
"@rules_license//licenses/generic:notice",
205224
],
225+
"license_text": "LICENSE",
206226
},
207227
"c-ares": {
208228
"archive": "6654436a307a5a686b008c1d4c93b0085da6e6d8.tar.gz",
@@ -240,6 +260,11 @@ DIST_DEPS = {
240260
"test_WORKSPACE_files",
241261
],
242262
"strip_prefix": "abseil-cpp-20211102.0",
263+
"license_kinds": [
264+
"@rules_license//licenses/generic:notice",
265+
],
266+
"license_text": "LICENSE",
267+
"package_version": "2021-11-02.0",
243268
},
244269
"zstd-jni": {
245270
"archive": "v1.5.2-3.zip",
@@ -255,6 +280,11 @@ DIST_DEPS = {
255280
"used_in": [
256281
"additional_distfiles",
257282
],
283+
"license_kinds": [
284+
"@rules_license//licenses/spdx:BSD-2-Clause",
285+
],
286+
"license_text": "LICENSE",
287+
"package_version": "1.5.2-3",
258288
},
259289
###################################################
260290
#
@@ -272,6 +302,7 @@ DIST_DEPS = {
272302
"additional_distfiles",
273303
"test_WORKSPACE_files",
274304
],
305+
"package_version": "1.0.3",
275306
},
276307
"io_bazel_skydoc": {
277308
"archive": "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
@@ -296,6 +327,7 @@ DIST_DEPS = {
296327
"additional_distfiles",
297328
"test_WORKSPACE_files",
298329
],
330+
"package_version": "0.0.3",
299331
},
300332
"rules_pkg": {
301333
"archive": "rules_pkg-0.8.0.tar.gz",
@@ -307,6 +339,7 @@ DIST_DEPS = {
307339
"used_in": [
308340
"additional_distfiles",
309341
],
342+
"package_version": "0.8.0",
310343
},
311344
"desugar_jdk_libs": {
312345
# Commit 5847d6a06302136d95a14b4cbd4b55a9c9f1436e of 2021-03-10
@@ -330,6 +363,7 @@ DIST_DEPS = {
330363
"used_in": [
331364
"test_WORKSPACE_files",
332365
],
366+
"package_version": "2.6",
333367
},
334368
"remote_java_tools": {
335369
"aliases": [
@@ -345,6 +379,7 @@ DIST_DEPS = {
345379
"used_in": [
346380
"test_WORKSPACE_files",
347381
],
382+
"package_version": "11.9",
348383
},
349384
"remote_java_tools_linux": {
350385
"aliases": [
@@ -360,6 +395,7 @@ DIST_DEPS = {
360395
"used_in": [
361396
"test_WORKSPACE_files",
362397
],
398+
"package_version": "11.9",
363399
},
364400
"remote_java_tools_windows": {
365401
"aliases": [
@@ -375,6 +411,7 @@ DIST_DEPS = {
375411
"used_in": [
376412
"test_WORKSPACE_files",
377413
],
414+
"package_version": "11.9",
378415
},
379416
"remote_java_tools_darwin": {
380417
"aliases": [
@@ -390,6 +427,7 @@ DIST_DEPS = {
390427
"used_in": [
391428
"test_WORKSPACE_files",
392429
],
430+
"package_version": "11.9",
393431
},
394432
"remotejdk11_linux": {
395433
"aliases": [

0 commit comments

Comments
 (0)