Adds a stamp attribute to go_binary which can be used to override --[no]stamp behavior for a specific binary target.
Semantics match those of cc_binary, and are limited to just go_binary for now.
Which issues(s) does this PR fix?
Closes #2154
Other notes for review
Open questions / tasks:
[ ] I am not 100% sure if there's additional documentation that needs to be updated, if someone can point me in the right direction I'm happy to add that.
[ ] Should go_test have this attribute as well? I didn't think it made sense for libraries have it, since conflicts between dependencies would need to be resolved, but I could probably add it for _test without needing to address those.
What type of PR is this?
Feature
What does this PR do? Why is it needed?
Adds a
stamp
attribute togo_binary
which can be used to override--[no]stamp
behavior for a specific binary target.Semantics match those of
cc_binary
, and are limited to just go_binary for now.Which issues(s) does this PR fix?
Closes #2154
Other notes for review
Open questions / tasks:
go_test
have this attribute as well? I didn't think it made sense for libraries have it, since conflicts between dependencies would need to be resolved, but I could probably add it for_test
without needing to address those.