-
Notifications
You must be signed in to change notification settings - Fork 36
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
Tool gets stuck when defining glob filepattern on big repo #377
Comments
@kostyay unfortunately, it is a known issue that the doublestar pattern does not perform very well for alias searching. We recommend using a more limited file pattern if possible. Given that you have 317 patterns to match in the repo, i understand that could be difficult. There isn't more verbose debugging at this time for alias searching. |
Ive tried using EDIT: patterns:
- 'featureFlag: (FLAG_KEY)'
- 'feature_flag: (FLAG_KEY)' |
@jazanne ld-find-code-refs/aliases/alias.go Line 79 in 68b13f0
Example: var filepathGlobCache = map[string][]string{}
func filepathGlob(absGlob string) ([]string, error) {
cachedFilePaths, ok := filepathGlobCache[absGlob]
if ok {
return cachedFilePaths, nil
}
matches, err := doublestar.FilepathGlob(absGlob)
filepathGlobCache[absGlob] = matches
return matches, err
} |
Hey
This is my config:
Running the tool like this:
Get the following output and the tool gets stuck:
Could it be that I got rate limited because I was running it a bunch of times?
There are 317 files matching that pattern in the repo.
Sometimes it works then I get this output:
dry run found 1113 code references across 720 flags and 844 files
However its still not finding everything I'd expect to be found.
Is there a more verbose debugging mode?
The text was updated successfully, but these errors were encountered: