diff options
| author | Bryan C. Mills <bcmills@google.com> | 2023-11-16 14:11:18 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-11-17 21:25:34 +0000 |
| commit | bb8a96fa547985168241eea72ee2bec15e749eff (patch) | |
| tree | 40839a254dcf03e66b8efe2ab104e743dad13a71 /src/runtime/mbitmap_allocheaders.go | |
| parent | 3ff5632d63b820fbcbb4b69e47ec586d59bf5ea5 (diff) | |
| download | go-bb8a96fa547985168241eea72ee2bec15e749eff.tar.xz | |
cmd/go: check that expected Origin fields are present to reuse module info
When 'go list' or 'go mod download' uses a proxy to resolve a version
query like "@latest", it may have origin metadata about the resolved
version but not about the inputs that would be needed to resolve the
same query without using the proxy.
We shouldn't just redact the incomplete information, because it might
be useful independent of the -reuse flag. Instead, we examine the
query to decide which origin information it ought to need, and avoid
reusing it if that information isn't included.
Fixes #61423.
Change-Id: Ibeaa46ebba284beee285cbb1898e271e5a5b257b
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/543155
Reviewed-by: Michael Matloob <matloob@golang.org>
Commit-Queue: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/mbitmap_allocheaders.go')
0 files changed, 0 insertions, 0 deletions
