feat(bazel): introduce a binary stamping feature (#22176)

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
This commit is contained in:
Alex Eagle
2018-02-13 08:20:35 -08:00
committed by Victor Berchet
parent a069e08354
commit bba65e0f41
5 changed files with 97 additions and 1 deletions

View File

@ -21,6 +21,12 @@ build --symlink_prefix=dist/
# Performance: avoid stat'ing input files
build --watchfs
###############################
# Release support #
###############################
build --workspace_status_command=./tools/bazel_stamp_vars.sh
###############################
# Output #
###############################