Skip to content

Cannot use v3 #125

@prymitive

Description

@prymitive

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions