New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go,x/website: GOPROXY=direct go list -versions -m go
is missing most versions
#61359
Comments
Found via #61358. |
A bit of debugging:
Maybe the (attn @rsc @golang/release) |
This appears to be intentional: Still, we should double-check the user experience with this configuration. (I had assumed that everything would go through — or be consistent with — |
Change https://go.dev/cl/509637 mentions this issue: |
Everything can't "go through" proxy.golang.org because proxy.golang.org has to fetch from somewhere, using GOPROXY=direct. That somewhere is go.dev/dl/mod. We should probably change /dl/mod to match the proxy and list all known versions. |
Tested locally by changing GOROOT/go.env. At some point perhaps we should also set up a builder that runs with some common expected modifications to go.env (such as GOTOOLCHAIN=local GOPROXY=direct GOSUMDB=off). Fixes #61358. Updates #61359. Change-Id: I365ec536bec86370e302fb726fa897400ab42cf3 Reviewed-on: https://go-review.googlesource.com/c/go/+/509637 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com>
If anyone wants to send a CL for x/website, please go ahead. |
Tested locally by changing GOROOT/go.env. At some point perhaps we should also set up a builder that runs with some common expected modifications to go.env (such as GOTOOLCHAIN=local GOPROXY=direct GOSUMDB=off). Fixes golang#61358. Updates golang#61359. Change-Id: I365ec536bec86370e302fb726fa897400ab42cf3 Reviewed-on: https://go-review.googlesource.com/c/go/+/509637 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
GOPROXY=direct go1.21rc2 list -m -versions go
What did you expect to see?
The same results as with
GOPROXY=https://proxy.golang.org
.What did you see instead?
This also reproduces with
go1.20.6 list -versions -m golang.org/toolchain
:GOPROXY=direct
causes the list of available toolchains to be substantially reduced.The text was updated successfully, but these errors were encountered: