-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Labels
Description
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/[email protected]: go.mod has non-.../v3 module path "github.com/Masterminds/semver" (and .../v3/go.mod does not exist) at revision v3.0.0