]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch/codehost: add new git tags before statLocal instead of after
authorBryan C. Mills <bcmills@google.com>
Mon, 4 Dec 2023 23:29:35 +0000 (18:29 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 6 Dec 2023 19:29:47 +0000 (19:29 +0000)
commit7b5a3733fce46aa44449c5ba28876f5a1e630650
tree8439cad4d31ad8f2a257b4b415438c8a8417f599
parent3f2bf706f7f6c260cb83410131d3c2d508e05a94
cmd/go/internal/modfetch/codehost: add new git tags before statLocal instead of after

gitRepo.statLocal reports tag and version information.
If we are statting a hash that corresponds to a tag, we need to add that tag
before calling statLocal so that it can be included in that information.

Fixes #53955.
Updates #56881.

Change-Id: I69a71428e6ed9096d4cb8ed1bb79531415ff06c1
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/547155
Auto-Submit: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modfetch/codehost/git.go
src/cmd/go/testdata/script/get_issue53955.txt [new file with mode: 0644]