Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to require v2.0.0 due to outdated go.mod #146

Closed
cyrilgdn opened this issue Jan 24, 2020 · 3 comments
Closed

Unable to require v2.0.0 due to outdated go.mod #146

cyrilgdn opened this issue Jan 24, 2020 · 3 comments

Comments

@cyrilgdn
Copy link

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(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

@michaelklishin 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
@michaelklishin
Copy link
Owner

@cyrilgdn is 8d2d6fa sufficient?

@michaelklishin
Copy link
Owner

Specifically, do we need to bump the version and release 2.1.0 so that the go.mod changes are included into the tag?

@cyrilgdn
Copy link
Author

is 8d2d6fa sufficient?

@michaelklishin I think so, I'm not an expert though, I discovered all this new major releases semantic versions stuff when I opened this issue 😅

Specifically, do we need to bump the version and release 2.1.0 so that the go.mod changes are included into the tag?

Yes as the v2.0.0 is not in the right format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants