Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: should `go list -versions` list cached versions when GOPROXY=off? #32337
Users can set
However, it can be difficult to figure out what those versions actually are:
The workaround is to set
Unfortunately, that's really not discoverable (Paul's example notwithstanding).
Instead, I propose that when
I don't see any other reasonable behavior we could provide in that case, and that would turn an otherwise useless-in-context command into a useful one.
Thanks @bcmills for filing this issue.
A bit more context behind this feature request: I found using Go without network access became harder and requires more learning in module mode than in the old GOPATH mode. In module mode, the best I could do was to ensure they are in the module cache or somewhere Go can recognize as a file proxy, but that is still insufficient because many Go commands will not work unless I explicitly set
Another option I thought about is to have another GOPROXY mode (maybe
No matter what decision Go team makes on this specific issue, I hope improvement in user experience when using Go without network.