cmd/go: mod init outside of GOPATH silently fails #31342
Labels
FrozenDueToAge
modules
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
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?
An error that go modules are disabled, for example:
go: modules disabled by GO111MODULE=off; see 'go help modules'
What did you see instead?
Nothing, the command silently failed.
I have submitted a PR to fix this issue in #31255
The text was updated successfully, but these errors were encountered: