-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathBUILD
More file actions
32 lines (28 loc) · 762 Bytes
/
BUILD
File metadata and controls
32 lines (28 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
load("@aspect_bazel_lib//lib:jq.bzl", "jq")
load("//:macros.bzl", "json_data")
load("//:versions.bzl", "VERSIONS")
load("//version:utils.bzl", "module_versions")
exports_files([
"jq.sh",
"versions.bzl",
"macros.bzl",
"packages.bzl",
])
json_data(
name = "deps",
data = VERSIONS,
)
jq(
name = "dependency_versions",
srcs = [":deps"],
out = "dependency_shas.json",
filter = """
with_entries(select(.value | objects and .type == "github_archive") | .value |= {repo, sha256, url, version})
""",
visibility = ["//visibility:public"],
)
# Example usage of module_versions to extract bzlmod dependency versions
module_versions(
name = "module_dependency_versions",
visibility = ["//visibility:public"],
)