Skip to content

Cannot update to v2.1 when using gomod #48

@dcormier

Description

@dcormier

Using go get -u github.com/jolestar/go-commons-pool@v2.1.0 to attempt to update to 2.1 results in this error:

go: finding github.com/jolestar/go-commons-pool v2.1.0
go: finding github.com/jolestar/go-commons-pool v2.1.0
go get github.com/jolestar/go-commons-pool@v2.1.0: github.com/jolestar/go-commons-pool@v2.1.0: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2

To resolve this, the module needs to refer to itself as github.com/jolestar/go-commons-pool/v2, as per the documentation, and likely the commit should be tagged as a new release (v2.1.1, at least).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions