-
-
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
typecheck errors in vendor files for predeclared any requires go1.18 #4942
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
FWIW: I believe the removal of |
Not really, the problem is that Go is now more strict with Go version used on files. So the problem is the build tags inside newrelic lib. |
Ah, that makes sense. Thanks for clarifying! |
The build tags have been removed inside v3.34.0 because it was a problem to compile newrelic/go-agent#940 https://github.com/newrelic/go-agent/blob/v3.34.0/v3/newrelic/sql_driver.go I will close this issue. |
@ldez I understand that it's been removed in newer versions, but what I'm confused about is why the linter would pop positive on 3rd party dependency issues for |
golangci-lint and linters rely on Go tooling, if a linter or Go changes the way to handle something, we have no choice. The change was required for staticcheck but it's not his fault, the change was just here to follow Go new version handling. The So yes, it's unwanted, but there are no other solutions. |
Welcome
typecheck
section of the FAQ.Description of the problem
After upgrading to golangci-lint v1.60.2, we are receiving errors for
predeclared any
typecheck errors for vendored third-party modules.Example error:
Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
Validation
Supporter
The text was updated successfully, but these errors were encountered: