]> Cypherpunks repositories - gostls13.git/commit
cmd/go: stamp the version for binaries built with go build
authorSam Thanawalla <samthanawalla@google.com>
Mon, 15 Jul 2024 14:37:52 +0000 (14:37 +0000)
committerSam Thanawalla <samthanawalla@google.com>
Mon, 12 Aug 2024 19:50:22 +0000 (19:50 +0000)
commit8aa2eed8fb90303c0876e51e097105eca7299734
tree7ac64f089412156676f73f05c2ce4520fd0173a7
parentb67443459a5bbe0e125e34538b4ce3c895de9efd
cmd/go: stamp the version for binaries built with go build

This CL will set the binary version using local tag information if
present.

For #50603

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Change-Id: I58bed345c7eea20e51a7b24ff6e943d9d1ed240d
Reviewed-on: https://go-review.googlesource.com/c/go/+/596035
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Karam Moore <bigjimhilljameel@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/go_test.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/modfetch/codehost/codehost.go
src/cmd/go/internal/modfetch/codehost/git.go
src/cmd/go/internal/modfetch/codehost/git_test.go
src/cmd/go/internal/modfetch/codehost/vcs.go
src/cmd/go/internal/modfetch/repo.go
src/cmd/go/script_test.go
src/cmd/go/testdata/script/build_version_stamping_git.txt [new file with mode: 0644]