You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go mod init m
go mod edit -require=rsc.io/[email protected]
go list -m -mod=readonly -versions rsc.io/quote
go list -m -mod=readonly rsc.io/quote@latest
What did you expect to see?
Both the go list -m commands above should succeed.
What did you see instead?
Both commands fail. This happens because go list -m loads the build list before processing arguments. go.sum is missing, so that fails.
There's no need to load the build list for these commands. They both succeed when run outside a module or when go.mod contains no requirements.
The text was updated successfully, but these errors were encountered:
@version turns out to be pretty easy, and I'm going to knock that out incidentally for #36460.
I think -versions will require part of the implementation for #29666, though: at the moment, we don't distinguish between -m -json -versions (which should also include information about the current version) and just -m -versions (which, without a -f template, does not need that information).
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?
What did you expect to see?
Both the
go list -m
commands above should succeed.What did you see instead?
Both commands fail. This happens because
go list -m
loads the build list before processing arguments.go.sum
is missing, so that fails.There's no need to load the build list for these commands. They both succeed when run outside a module or when
go.mod
contains no requirements.The text was updated successfully, but these errors were encountered: