Giter VIP home page Giter VIP logo

Comments (5)

karlseguin avatar karlseguin commented on September 26, 2024

Sorry about that, don't do much go anymore so didn't know Updated.

from ccache.

prachiSharmaa avatar prachiSharmaa commented on September 26, 2024

Publishing the tags alone does not solve this. See below,

> go get -v -u github.com/karlseguin/ccache/[email protected]
go: finding github.com v2.0.4
go: finding github.com/karlseguin/ccache v2.0.4
go: finding github.com/karlseguin v2.0.4
go: finding github.com/karlseguin/ccache/v2 v2.0.4
go: finding github.com/karlseguin/ccache/v2 v2.0.4
go: finding github.com/karlseguin/ccache v2.0.4
go get github.com/karlseguin/ccache/[email protected]: github.com/karlseguin/[email protected]: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2

This is because gomodules major versions >=v2 need to have the version in the module path. In this case, the module path in go.mod should be github.com/karlseguin/ccache/v2. Details here.

from ccache.

karlseguin avatar karlseguin commented on September 26, 2024

So I pushed:
937ca29

if I create a new version, it should be all good? (I realize I should know this, but I have little desire to spend time understanding how Go finally decided to do this)

from ccache.

prachiSharmaa avatar prachiSharmaa commented on September 26, 2024

Yes, this should work. Please create a new version from this. Thanks.

from ccache.

emiguens avatar emiguens commented on September 26, 2024

Thanks @karlseguin for the fast response time 😄

It's not required for the module name to be changed (adding the /v2 suffix). Go modules can find the v2.x.x versions using the original module path.

Of course, adding the /v2 suffix to the module name, as you did in 937ca29, is the recommended way to go as the Go team is concerned, so I think this what the right call.

Now the examples in the README are wrong because they point to the "plain" v1 module. All imports and install instructions should be changed so they use github.com/karlseguin/ccache/v2 module path.

from ccache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.