Cannot use v3
prymitive opened this issue · comments
Łukasz Mierzwa commented
Trying to upgrade to v3.0.0
--- a/go.mod
+++ b/go.mod
@@ -4,7 +4,7 @@ go 1.12
require (
[...]
- github.com/Masterminds/semver v1.5.0
+ github.com/Masterminds/semver v3.0.0
[...]
but Go wants /v3
suffix on the module:
go: finding github.com/Masterminds/semver v3.0.0
go: finding github.com/Masterminds/semver v3.0.0
go: errors parsing go.mod:
/home/lukasz/work/karma/go.mod:7: require github.com/Masterminds/semver: version "v3.0.0" invalid: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v3
so added it:
--- a/go.mod
+++ b/go.mod
@@ -4,7 +4,7 @@ go 1.12
require (
[...]
- github.com/Masterminds/semver v1.5.0
+ github.com/Masterminds/semver/v3 v3.0.0
[...]
but getting an error during go build
and go mod tidy
:
$ go mod tidy
go: github.com/Masterminds/semver/v3@v3.0.0: go.mod has non-.../v3 module path "github.com/Masterminds/semver" (and .../v3/go.mod does not exist) at revision v3.0.0
Matt Farina commented
@prymitive Thanks for catching this. It should now be fixed. Try using v3.0.1 with the bugfix.
medium-joel commented
I'm still encountering this error an am on v3.0.1