Skip to content

Module path does not match major version v6 #86

@mrccnt

Description

@mrccnt
  • go version go1.18.3 linux/amd64
  • os: Ubuntu 18.04.6 LTS

Reproduce:

  1. mkdir gokongtest
  2. cd gokongtest
  3. go mod init github.com/whatever/gokongtest
go: creating new go.mod: module github.com/whatever/gokongtest
  1. go get github.com/kevholditch/gokong
go: added github.com/google/go-querystring v1.1.0
go: added github.com/kevholditch/gokong v6.0.0+incompatible
go: added github.com/parnurzeal/gorequest v0.2.16
go: added github.com/pkg/errors v0.9.1
go: added golang.org/x/net v0.0.0-20220708220712-1185a9018129
go: added moul.io/http2curl v1.0.0

Version v6.0.0+incompatible got pulled in.

  1. Try v6.1.0 explicit via go get github.com/kevholditch/[email protected]
go: github.com/kevholditch/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/kevholditch/gokong/v6")
  1. Try v6 module path go get github.com/kevholditch/gokong/v6
go: module github.com/kevholditch/gokong@upgrade found (v6.0.0+incompatible), but does not contain package github.com/kevholditch/gokong/v6

Any ideas on how to handle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions