]> Cypherpunks repositories - gostls13.git/commit
cmd/go: disallow version string in go mod init module path
authorKyle Wood <kyle@kylewood.cc>
Fri, 16 Nov 2018 16:46:14 +0000 (10:46 -0600)
committerBryan C. Mills <bcmills@google.com>
Fri, 7 Dec 2018 22:42:18 +0000 (22:42 +0000)
commit179909f20556262422a8b99c059eacdfcebc48ee
treeac64ca56cb0dcee9a99ded7a94074b269e7f389b
parent444887dde8393c3bbf94122c17ab7f005a7257c4
cmd/go: disallow version string in go mod init module path

To prevent confusion, go mod init should not allow version strings in
the module path when provided as an argument. Instead, fail with a
useful error message.

Fixes #28803

Change-Id: I59272a91b042e32cef33c2e2116f760ca1def218
Reviewed-on: https://go-review.googlesource.com/c/150018
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modcmd/init.go