bazelbuild / rules_go

Go rules for Bazel
Apache License 2.0
1.36k stars 636 forks source link

Add stamping support to go_binary #3980

Open ian-h-chamberlain opened 2 days ago

ian-h-chamberlain commented 2 days ago

What type of PR is this?

Feature

What does this PR do? Why is it needed?

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: