build: use cross platform workspace_status_command (#27431)
PR Close #27431
This commit is contained in:

committed by
Andrew Kushnir

parent
eb1aae4043
commit
d6cfe2ed7e
@ -133,7 +133,7 @@ Bazel supports the ability to include non-hermetic information from the version
|
||||
You can see an overview at https://www.kchodorow.com/blog/2017/03/27/stamping-your-builds/
|
||||
In our repo, here is how it's configured:
|
||||
|
||||
1) In `tools/bazel_stamp_vars.sh` we run the `git` commands to generate our versioning info.
|
||||
1) In `tools/bazel_stamp_vars.js` we run the `git` commands to generate our versioning info.
|
||||
1) In `.bazelrc` we register this script as the value for the `workspace_status_command` flag. Bazel will run the script when it needs to stamp a binary.
|
||||
|
||||
Note that Bazel has a `--stamp` argument to `yarn bazel build`, but this has no effect since our stamping takes place in Skylark rules. See https://github.com/bazelbuild/bazel/issues/1054
|
||||
|
Reference in New Issue
Block a user