You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Releasing a v2 or higher apparently needs to add a /v2 at the end of the module path in go.mod(so module github.com/michaelklishin/rabbit-hole/v2).
Because of that, we are not able to require the v2.0.0:
$ mkdir /tmp/test_mod && /tmp/test_mod
$ go mod init test
go: creating new go.mod: module test
$ go get github.com/michaelklishin/[email protected]
go: finding github.com v2.0.0
go: finding github.com/michaelklishin/rabbit-hole v2.0.0
go: finding github.com/michaelklishin v2.0.0
go: finding github.com/michaelklishin/rabbit-hole v2.0.0
go get github.com/michaelklishin/[email protected]: github.com/michaelklishin/[email protected]: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2
As you can see, we got the following error:
invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2
The text was updated successfully, but these errors were encountered:
michaelklishin
changed the title
Unable to require v2.0.0: It does not follow semantic versioning rules.
Unable to require v2.0.0 due to outdated go.mod
Jan 28, 2020
This module does not seem to not follow correctly the Go semantic import versioning since you released the v2
Releasing a v2 or higher apparently needs to add a /v2 at the end of the module path in
go.mod
(somodule github.com/michaelklishin/rabbit-hole/v2
).Because of that, we are not able to require the v2.0.0:
As you can see, we got the following error:
The text was updated successfully, but these errors were encountered: