diff options
| author | Russ Cox <rsc@golang.org> | 2022-07-01 16:10:19 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2022-07-05 12:57:46 +0000 |
| commit | c1110910713766eb06d75ed48db3722d318a845e (patch) | |
| tree | ec29695235a052387ebd8f1d0423db2a95fb5ddb /src/os/exec/exec.go | |
| parent | 5f305ae8e5796ea3821088863a6842117c58da72 (diff) | |
| download | go-c1110910713766eb06d75ed48db3722d318a845e.tar.xz | |
cmd/go: make module@nonexistentversion failures reusable
CL 411398 added the -reuse flag for reusing cached JSON output
when the remote Git repository has not changed. One case that was
not yet cached is a lookup of a nonexistent version.
This CL adds caching of failed lookups of nonexistent versions,
by saving a checksum of all the heads and tags refs on the remote
server (we never consider other kinds of refs). If none of those have
changed, then we don't need to download the full server.
Fixes #53644.
Change-Id: I428bbc8ec8475bd7d03788934d643e1e2be3add0
Reviewed-on: https://go-review.googlesource.com/c/go/+/415678
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions
