forked from kubernetes-retired/cluster-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
25 lines (21 loc) · 754 Bytes
/
BUILD.bazel
File metadata and controls
25 lines (21 loc) · 754 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
load("@io_bazel_rules_go//go:def.bzl", "gazelle", "go_prefix")
exports_files(["LICENSES"])
gazelle(
name = "gazelle",
external = "vendored",
args = ["-proto", "disable"],
)
go_prefix("k8s.io/cluster-registry")
genrule(
name = "sources",
outs = ["SOURCES.md"],
stamp = 1,
cmd = "VERSION=\"$$(awk '/STABLE_BUILD_GIT_COMMIT/ {print $$2}' bazel-out/stable-status.txt)\"; " +
"echo \"The sources for this release can be found on GitHub:\n" +
" [tar.gz](https://github.com/kubernetes/cluster-registry/archive/$${VERSION}.tar.gz)\n" +
" [zip](https://github.com/kubernetes/cluster-registry/archive/$${VERSION}.zip)\"" +
"> $@",
visibility = [
"//cmd:__subpackages__",
]
)