-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
--new-from-rev may silently fail on large git histories #970
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
I narrowed down the test case a bit further. It's not necessarily related to the git history being long, but rather a long line in the diff of a single file. So for example, the following command should produce a file that will trigger this behavior if added to a repo: for I in {0..20000}; do echo -n "A" >> badfile.txt; done |
Seems like it is bug in revgrep and can be fixed by increasing I have no write access to https://github.com/golangci/revgrep so can't fix it. cc: @jirfag |
Hey @jirfag thanks for the help on this! Any chance of reviewing @schallert 's PR fixing this, or pointers to someone else who could review? golangci/revgrep#4 Thanks! |
+1 can we get golangci/revgrep#4 looked at? This has been causing significant pain for a few big repos such as https://github.com/m3db/m3. |
I've merged golangci/revgrep#4 |
Thank you for creating the issue!
Please include the following information:
Version of golangci-lint
Config file
Go environment
Verbose output of running
When running
golangci-lint
with--new-from-rev
on some large git histories,revgrep
silently fails with:In the above test cases,
--new-from-rev HEAD~500
reports 0 errors but--new-from-rev HEAD~50
reports 3 errors.When using a forked version of revgrep with golangci/revgrep#4 pulled in,
--new-from-rev HEAD~500
reports all expected errors:I unfortunately don't have a public git repo to reproduce with, but if necessary can try to create a mock one with a lot of large commits in history.
The text was updated successfully, but these errors were encountered: