-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[v2] Failed executing command with error: can't load config: gofmt is a formatter #5597
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello, The configuration has changed: https://golangci-lint.run/product/migration-guide/#linters-settings I recommend using the migration command: https://golangci-lint.run/product/migration-guide/#command-migrate |
Thanks, I'll check it out. If the linter can auto-detect v1 config it would be nice if it would print these links, rather than a cryptic error message. |
The v1 (v1.64.8) detects the v2 configuration. And v2 detects the v1 configuration, I need to check something. |
I got the same error, I had no config file while using v1, |
The v2 validation was not in the right position: #5599 |
@julieta-311 can you create a dedicated issue? |
Either the command definition is incorrect in the documentation https://golangci-lint.run/usage/configuration/#fmt or the validation is being applied incorrectly because I am able to reproduce this issue with the command line flags:
|
@lratc can you open a dedicated issue? |
Welcome
typecheck
section of the FAQ.How did you install golangci-lint?
go install
Description of the problem
Trying to upgrade to v2 and it fails on the existing config. I have these previously valid linters in the config:
Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
jaegertracing/jaeger-idl#160
Validation
Supporter
The text was updated successfully, but these errors were encountered: