]> Cypherpunks repositories - gostls13.git/commit
cmd/go: stamp VCS commit time into binaries
authorMark Pulford <mark@kyne.com.au>
Sat, 16 Oct 2021 06:53:31 +0000 (17:53 +1100)
committerBryan C. Mills <bcmills@google.com>
Tue, 26 Oct 2021 17:10:45 +0000 (17:10 +0000)
commit76cef81bcff371c88d277f17c712ecf22b8c83e7
treeafeba25fc96173a37d0b29bad7d608c4e7777366
parent1b2362bb83de47188e7c60a69f46950de542f017
cmd/go: stamp VCS commit time into binaries

Only Git and Mercurial are supported for now.

This CL also:
- Skips tagging "revision" and "committime" for empty repositories.
- Stores the full Mercurial changeset ID instead of the short form.

Fixes #37475

Change-Id: I62ab7a986d1ddb2a0e7166a6404b5aa80c2ee387
Reviewed-on: https://go-review.googlesource.com/c/go/+/356251
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/vcs/vcs.go
src/cmd/go/testdata/script/version_buildvcs_git.txt
src/cmd/go/testdata/script/version_buildvcs_hg.txt