Comments (5)
from pkglint.
I reproduced the problem locally and am working on a fix.
from pkglint.
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.
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
topkglint/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.
Confirmed. Thank you for the quick fix!
from pkglint.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkglint.