-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Prevent run multiply copies golangci-lint with same params #108
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
Labels
Comments
IMO this seems like an issue that is not particular to golangci-lint and should be solved in the general case by Goland. |
IDE can't know purpose of calls - it only exec command while change file. I see 3 variants of decision:
|
As I mentioned in the duplicate issue, the problem occurs for vscode as well. |
Fixed in #812 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I edit files Goland can save many files same time (Ctrl+S after rename refactor or after manual changes few files).
If I add golangci-lint as filewatcher with project dir param - golangci-lint start many times - once for every saved file.
I think it will good for use some lock for prevent do work multiply times. For example - create lock-file/lock-dir flag with hash of current args and env.
If lock file existed - exit with code 0.
Check lock flag for old file (for example - ignore it after a hour) - for prevent forever lock in some mistakes.
The text was updated successfully, but these errors were encountered: