-
-
Notifications
You must be signed in to change notification settings - Fork 164
Failed at config verify
#1174
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
Comments
@pulkitanz This is not a compilation failure. Since v6.5.0, the configuration is verified against JSONSchema by default. @MeCode4Food The logs say you have invalid elements inside your configuration file.
Please provide your configuration file. Note: using |
To provide more information: the JSONSchema used to validate your configuration depends on the version of golangci-lint you are using. Also note that v1.57.2 is very old: 2024-03-28 go1.22.1 is also an old version with security issues, the Go team maintains only the 2 latest minor versions of Go: currently go1.23, go1.24 |
Removed all details tag with @ldez Thank you for responding. As it turns out, the message itself shows what is wrong with the configuration and what needs to be changed. Apologies for the bad Issue |
You should not remove the details with "none" but you should provide them or at least provide an explanation: the fields are required. Anyway, the question is answered. |
That is fair. I'd like to also talk about the added verification step in |
Theoretically, everybody should use a valid configuration, so IMHO it doesn't require a major version of the GitHub Action. This validation is important for the future v2 of golangci-lint: the migration command will migrate valid fields only. If you want to disable this validation you can disable it but I strongly discourage doing that: https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#verify You can run locally the validation of the configuration file: golangci-lint config verify Also, most of the IDEs are validating the configuration file by default. |
This is actually a breaking change and should of been a major with the way it was implemented, for it to conform to a minor version update it would of had to have been done with You can argue that people should in theory have valid configurations, but that is not always guaranteed to be the case. **we have had a number of our CI pipelines broken by this change for reference. |
I agree, I think default to |
I did what I thought was the best for users. I work full-time on golangci-lint and I have $100 as revenue, so be sure I didn't make this change to have more stress. Companies appreciate using golangci-lint, and are quick to complain of free work, but as far as I know, they don't support us. |
Sorry, It wasn't intended to come across as a complaint, more-so just outlining how it is indeed a breaking change/major worthy version bump, instead of a minor, in the attempt to aid in any potential future scenarios where a decision like this around implementation or version number changes come into consideration. |
Don't worry the integration of the v2 will be introduced with a major version of the GitHub Action. |
Welcome
Description of the problem
config verify
command failed with message, even though action has passed previously.Message:
Version of golangci-lint
v1.57.2
Version of the GitHub Action
undefined
Workflow file
Go version
1.22.1
The text was updated successfully, but these errors were encountered: