-
-
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
golangci-lint says "File is not gofmt
-ed", but gofmt
thinks it's fine
#3101
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
gofmt
-ed", but gofmt
thinks it's fine
Another peculiarity is that I can only reproduce this on the GitHub Actions runners, not on my local machine. |
This is because of a change in Go 1.19 how You're running Go 1.18 locally but GitHub Actions is running Go 1.19. The issue is reproducible with Go 1.19 locally as well. Dupliacte of #3069 Closing in favour of golangci/golangci-lint-action#535 |
Welcome
Description of the problem
I'm running golangci-lint on this file and it's outputting the error:
However, when I run gofmt on it, there is no issue:
Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
// add your code here
The text was updated successfully, but these errors were encountered: