-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
golangci-lint v1.24.0 still appears to not be cleaning up lock file #1021
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
Hi, |
Just tested on linux, and got the below output. looks like
NOTE: I had to go get because the binary in golangci-lint-1.26.0-freebsd-386.tar.gz refused to work on my machine On mac:
|
I would say this is the issue for --version As another note golangci-lint/pkg/commands/root.go Lines 19 to 22 in 6bd10d0
|
I confirmed that it can be reproduced on v1.26.0, but not on v1.27.0. As @SteelPhase pointed out, there were some paths that exits without removing lock file. Removing lock file is executed by cobra.Command's PostRun hook, but it is not set for those cases. |
closing due to the issue is fixed in the v1.27.0 release |
Lock file should be cleaned up when running
golangci-lint --version
orgolangci-lint --help
Version of golangci-lint v1.24.0
Go environment
Verbose output of running
The text was updated successfully, but these errors were encountered: