]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add Mercurial based version stamping for binaries
authorSam Thanawalla <samthanawalla@google.com>
Wed, 28 Aug 2024 16:26:30 +0000 (16:26 +0000)
committerSam Thanawalla <samthanawalla@google.com>
Mon, 30 Sep 2024 14:30:37 +0000 (14:30 +0000)
commit7fd0b133dc1bb4af59914650660c644381c84e35
tree6307e93bfc465da9dea5e1d73f6b4dd06e8d604a
parent49dd7726a9e2e4371de984871082ea0e3791cbdd
cmd/go: add Mercurial based version stamping for binaries

This CL adds a local only VCS lookup for Mercurial.
It fixes a bug in pkg.go by passing in the repo directory to
the LookupLocal function instead of the module directory. It could be
the case that a binary is built in a subdirectory of the repo.

For: #50603
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Change-Id: Ic36b5a361a8ba3b0ba1a6968cde5f5263c9c8dd0
Reviewed-on: https://go-review.googlesource.com/c/go/+/609155
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/modfetch/codehost/vcs.go
src/cmd/go/testdata/script/version_buildvcs_hg.txt