5 ms·
A bit surprised by: "The go command now embeds version control information in binaries including the currently checked-out revision, commit time, and a flag in
by pcj-github 5y ago
A bit surprised by:
"The go command now embeds version control information in binaries including the currently checked-out revision, commit time, and a flag indicating whether edited or untracked files are present. Version control information is embedded if the go command is invoked in a directory within a Git, Mercurial, Fossil, or Bazaar repository, and the main package and its containing main module are in the same repository. This information may be omitted using the flag -buildvcs=false."
Curious why this was included.
- eklitzke 5y agoSo you can tell if someone is filing a bug report with a pristine version of go built from unmodified source code, or if the go binary they are filing with a bug report has modifications.
- pcj-github 5y agoOK so this is about the go binary itself, not a new stamping behavior of binaries coming out of the compiler/linker?
- cachvico 5y agoNo, it stamps the output binaries.
- naikrovek 5y agodoes that not seem semi-valuable to you? I mean if you're someone that passes off altered code as official code then yeah it would bother you, I guess. I'm not saying you do that, but I'm sure someone does.