You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's common to use genrule with stamp = -1 to integrate the workspace status (git hash or timestamp) into binaries. (This is not well documented, but see bazelbuild/bazel#4942.) However, genrule is not cross-platform; folks should really be using run_binary instead of genrule wherever they can. Unfortunately, run_binary doesn't have the stamp attribute!
The FR is to add that support.
BTW, the bazel-lib fork of run_binary does support stamp = -1bazel-contrib/bazel-lib#185. I'm not sure if the fork is close enough for the support to be easy to upstream.
The text was updated successfully, but these errors were encountered:
It's common to use
genrule
withstamp = -1
to integrate the workspace status (git hash or timestamp) into binaries. (This is not well documented, but see bazelbuild/bazel#4942.) However,genrule
is not cross-platform; folks should really be usingrun_binary
instead ofgenrule
wherever they can. Unfortunately,run_binary
doesn't have thestamp
attribute!The FR is to add that support.
BTW, the
bazel-lib
fork ofrun_binary
does supportstamp = -1
bazel-contrib/bazel-lib#185. I'm not sure if the fork is close enough for the support to be easy to upstream.The text was updated successfully, but these errors were encountered: