Coder Social home page Coder Social logo

Comments (10)

greut avatar greut commented on June 19, 2024 3

It's a common misconception, but go package versions can not really be deleted because go proxies already have them in cache and that cache is immutable. Just publish a fixed patch release instead.

Indeed, but they can be retracted: https://go.dev/doc/modules/gomod-ref#retract

from editorconfig-checker.

viceice avatar viceice commented on June 19, 2024 1

i think they get automatically grabbed when properly defined. your v3 releases can't be installed via go install because the module version suffix is still v2 you should release a new v3 with that changed to v3

module github.com/editorconfig-checker/editorconfig-checker/v2

this version always need to correspond with your major version github tags / releases

from editorconfig-checker.

viceice avatar viceice commented on June 19, 2024

That seems to be the breaking change 😕

from editorconfig-checker.

viceice avatar viceice commented on June 19, 2024

and the upgrade from v2.7.3 to 2.8.0 will be broken again, because the change wasn't released there 😕

from editorconfig-checker.

viceice avatar viceice commented on June 19, 2024

I think the best would be to delete v2.7.3 or unlist it here https://pkg.go.dev/github.com/editorconfig-checker/editorconfig-checker/v2

from editorconfig-checker.

viceice avatar viceice commented on June 19, 2024

another issue is that v3 isn't available on pkg.go.dev

from editorconfig-checker.

mstruebing avatar mstruebing commented on June 19, 2024

Hey @viceice how does a package get published on pkg.go.dev? I think I've never submitted it there.

from editorconfig-checker.

viceice avatar viceice commented on June 19, 2024

also your version 2.8.0 isn't visible because of the missing v on the git tag

from editorconfig-checker.

viceice avatar viceice commented on June 19, 2024

so you should publish a new v2.8.1 from the 2.8.0 or just add the v2.8.0 tag to the same commit and update the github release.

from editorconfig-checker.

silverwind avatar silverwind commented on June 19, 2024

I think the best would be to delete v2.7.3 or unlist it here https://pkg.go.dev/github.com/editorconfig-checker/editorconfig-checker/v2

It's a common misconception, but go package versions can not really be deleted because go proxies already have them in cache and that cache is immutable. Just publish a fixed patch release instead.

Deleting a git tag would only break it more because then people behind a go proxy that does not have the cache entry will get a broken install. Just never delete tags on a go package repo please.

from editorconfig-checker.

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.