Giter VIP home page Giter VIP logo

Comments (5)

mcandre avatar mcandre commented on September 28, 2024 1

from pkglint.

rillig avatar rillig commented on September 28, 2024

I reproduced the problem locally and am working on a fix.

from pkglint.

rillig avatar rillig commented on September 28, 2024

I solved it halfway. This command now works:

go install github.com/rillig/pkglint/v23/cmd/[email protected]

The v23 in the middle does not look right, but seems necessary:

$ go install -v github.com/rillig/pkglint/cmd/[email protected]
go: github.com/rillig/pkglint/cmd/[email protected]:
    github.com/rillig/pkglint/cmd/[email protected]:
    invalid version: unknown revision cmd/pkglint/v23.1.3

Replacing @v23.1.3 with @latest erroneously downloads the old version v21.1.2:

$ go install -v github.com/rillig/pkglint/v23/cmd/pkglint@latest
go: downloading github.com/rillig/pkglint/v23 v23.1.3
go: downloading github.com/rillig/pkglint v21.1.2+incompatible
go: downloading golang.org/x/crypto v0.6.0
go: downloading golang.org/x/sys v0.5.0

Any idea how to solve these issues?

from pkglint.

rillig avatar rillig commented on September 28, 2024

I modified the module to conform to the v2+ style. Here is what I did:

  • Move the code to the v23 subdirectory, as that is the current major version. (Well, not quite, it's the current year, but nevermind.)
  • Adjust the package paths from pkglint to pkglint/v23, to prevent referring to any older version.

To build and install pkglint, run:

go install github.com/rillig/pkglint/v23/cmd/pkglint@latest

The v23 in the module name seems to be unavoidable.
Thanks for your help, you encouraged me a lot to dive through the vast amount of documentation regarding Go modules. I wish all this documentation would not be necessary and instead the workflows would be simpler.

from pkglint.

mcandre avatar mcandre commented on September 28, 2024

Confirmed. Thank you for the quick fix!

from pkglint.

Related Issues (5)

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.