go/src/cmd
Russ Cox bd80d8956f cmd/go/internal/modfetch: do not trust server to send all tags in shallow fetch
Newer git versions (at least git 2.47.1) do not send all the matching tags
for a shallow fetch of a specific hash anymore. The go command assumes
that git servers do this. Since that assumption is broken, use the local
copy of the remote refs list to augment the tags sent by the server.
This makes the cmd/go/internal/modfetch tests pass again with newer git.

Fixes #71261.

Change-Id: I9fd4f3fd7beeb68a522938599f8f3acd887d0b26
Reviewed-on: https://go-review.googlesource.com/c/go/+/642437
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
2025-01-14 10:07:07 -08:00
..
addr2line
api cmd/api: report error in test instead of crashing 2025-01-14 10:06:18 -08:00
asm cmd/internal/obj/ppc64: support for decimal floating point instructions 2024-11-21 18:27:17 +00:00
buildid
cgo cmd/cgo: use full prototype for main in C code 2024-12-11 15:57:34 -08:00
compile go/types, types2: don't panic when instantiating generic alias with wrong number of type arguments 2025-01-13 10:30:43 -08:00
covdata
cover
dist crypto/internal/fips140: mark OpenBSD unsupported 2025-01-03 10:53:43 -08:00
distpack
doc
fix
go cmd/go/internal/modfetch: do not trust server to send all tags in shallow fetch 2025-01-14 10:07:07 -08:00
gofmt
internal cmd/internal/hash: stop using md5, sha1 2025-01-07 10:59:33 -08:00
link cmd/link: document that -s implies -w 2024-12-30 12:06:30 -08:00
nm
objdump cmd/internal/objfile: break out dissassemblers to another package 2024-12-11 08:53:20 -08:00
pack
pprof cmd/internal/objfile: break out dissassemblers to another package 2024-12-11 08:53:20 -08:00
preprofile cmd/preprofile: correct -V flag 2024-11-27 21:27:58 +00:00
relnote
test2json cmd/go: print build errors during go test -json in JSON 2024-11-17 14:32:05 +00:00
tools
trace cmd/trace: also show end stack traces 2024-11-27 06:35:34 +00:00
vendor all: update vendored dependencies [generated] 2024-12-06 18:34:31 +00:00
vet cmd, go: fix some typos 2024-12-17 11:19:09 -08:00
README.vendor
go.mod all: update vendored dependencies [generated] 2024-12-06 18:34:31 +00:00
go.sum all: update vendored dependencies [generated] 2024-12-06 18:34:31 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.