Closed aspin closed 6 months ago
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
Hello,
I think it's related to some build tags and not to generics.
Can you try to create a minimal reproducible example (without private dependencies)?
FYI typecheck
is not a real linter it's just a way to parse/display "compilation" and linters errors (linter reports are not errors).
The only build tag I have is //go:build integration
for some integration test suites. Any ideas on where to look to try to reproduce this? I'm not sure how to start copying the code out. When I do so, I don't get any errors.
Any ideas on where to look to try to reproduce this? I'm not sure how to start copying the code out. When I do so, I don't get any errors.
So the problem is not related to generics but to your dependencies. I think you have some specific OS files.
Welcome
Description of the problem
On macOS,
golangci-lint
seems to not understand some part of generics (I think?). This same errors do not appear on an installation ofgolangci-lint
that's run in CI, and the code compiles and runs without issue.On closer inspection, the other errors raised here also make extremely little sense (unused imports, variables, etc.).
I can copy one file here:
Yet
golangci-lint
:Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository