cmd/go: reject module paths containing '@' during 'go mod init' #28803
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Extracted from #28338.
The module path in a
go.mod
file does not contain the version, but users (especially newcomers) may try togo mod init [email protected]
orgo mod init foo@latest
anyway.We should detect that and fail with a helpful error message, just as we reject
pkg@version
syntax in other commands (likego build
).The text was updated successfully, but these errors were encountered: