Closed
Description
What version of Go are you using (go version
)?
$ go version go version devel +6ac91e4 Mon Feb 1 05:14:58 2021 +0000 linux/amd64
What did you do?
go mod init example.com/foo/v1
What did you expect to see?
A descriptive error saying v0
or /v1
isn't allowed, ex with gorelease
:
main » gorelease
gorelease: module path "example.com/foo/v1" has major version suffix "v1".
A major version suffix is only allowed for v2 or later.
What did you see instead?
go.mod
created without error
main » go mod init example.com/foo/v1
go: creating new go.mod: module example.com/foo/v1