-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
lint: update to golangci-lint/v2 #3710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This does not address the 4th item from #3707. This now jumps to the incorrect path when action items are found. |
And how should one know where that root is? There's nothing in the output that tells you. https://golangci-lint.run/product/migration-guide/ says there's a configuration value , There's a The only way I can see to handle this is to either pre-flight every Do you see other options? |
Pre-flighting will come with its own problems, too, because there's no way to check at the value of
After considering all of this, I don't see a good path forward short of expecting vim-go users to make sure |
Looks like a solution has landed in golangci/golangci-lint#5651 |
Nice! Looks like absolute paths will be available in 2.0.3, whenever that release is cut. My suggestions were going to be much hackier. I wonder if there's a need to support v1/v2 co-existing. Personally, I think it's probably okay to just move to v2. I suspect it will raise an error if there's a v1 config that hasn't been migrated yet. Go only supports two previous versions (~1 year), and golangci-lint follows the language closely. So, golangci-lint@v1 should be largely irrelevant in about a year for actively maintained software. That said, there could be a little bit of friction involved in the transition, which is worth acknowledging. |
ee6b3f3
to
4dc5780
Compare
Fixes #3707