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
Run go list -m or go mod download in a directory with a malformed go.mod file. The commands are run with arguments that should not require information about the main module or the build list, so it shouldn't actually be necessary to read go.mod.
go list -m -versions golang.org/x/mod
go mod download golang.org/x/mod@v0.2.0
-- go.mod --
ʕ◔ϖ◔ʔ
What did you expect to see?
Both commands should succeed.
What did you see instead?
Both commands fail with an error like the one below:
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?
Run
go list -m
orgo mod download
in a directory with a malformedgo.mod
file. The commands are run with arguments that should not require information about the main module or the build list, so it shouldn't actually be necessary to readgo.mod
.What did you expect to see?
Both commands should succeed.
What did you see instead?
Both commands fail with an error like the one below:
The text was updated successfully, but these errors were encountered: