cmd/go: go mod init in GOPATH can create invalid module path #46085
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Assuming
$GOPATH
is~/go
:What did you expect to see?
An error reported by
go mod init
, since the computed module path is incorrect.What did you see instead?
The issue is probably the same as the one in #45025, however in this case
go mod
is free to don't use the auto generated module path.The text was updated successfully, but these errors were encountered: