-
-
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 the source of golang code #3649
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
I've tried to use binary 1.51.1 version and this issues didn't appear. |
Small update: When I used binary (1.51.2) from the release page, I didn't face this issues |
I'm closing the issue |
Seeing the same issue here, where
|
@eliasp Did you try to install the latest version from the release page? I think my problem was with VS Code: I've tried to download binary from the release page and these issues disappeared. |
That's weird - it works with the one from the release page. I'll investigate further and try to get to the root of this. |
Hello, it's not a problem with golangci-lint.
|
I've seen you post this on other issues as well, but it's not a helpful response. I'm facing this error in my CI right now. It may not be a linter message, but it's definitely being emitted from golangci-lint. My guess is that this is a problem of golangci-lint being built with a different (probably lower) version of Go than what is used to build the code it's linting. |
Yeah, can confirm, I updated golangci-lint to be built with go1.20 (previously 1.18), and the repo I was linting was built with go1.20, and that fixed the problem. |
I added a suggested list to #3460 for things to try when troubleshooting find the root cause. Just to be clear did you just update the version of |
Welcome
Description of the problem
Typecheck errors occurred when try to run command in my project dir:
golangci-lint run ./...
Version of golangci-lint
golangci-lint has version v1.51.2 built from (unknown, mod sum: "h1:yIcsT1X9ZYHdSpeWXRT1ORC/FPGSqDHbHsu9uk4FK7M=") on (unknown)
Configuration file
No config is used
Go environment
Verbose output of running
Code example or link to a public repository
The text was updated successfully, but these errors were encountered: