bba65e0f41
This grabs version control metadata and makes it available in the build, eg. to put in the version field for released artifacts PR Close #22176
10 lines
290 B
Python
10 lines
290 B
Python
# Executes the workspace_status_command and provides the result.
|
|
# See the section on stamping in docs/BAZEL.md
|
|
genrule(
|
|
name = "stamp_data",
|
|
outs = ["stamp_data.txt"],
|
|
cmd = "cat bazel-out/volatile-status.txt > $@",
|
|
stamp = True,
|
|
visibility = ["//:__subpackages__"],
|
|
)
|