-
Notifications
You must be signed in to change notification settings - Fork 113
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
Some dynamic patterns don't work together #316
Comments
I created a simple PR #317 that fixes this issue, but I'm not sure if it affects other things. |
At first glance, we must pick the patterns with the |
The solution that minimizes the amount of file walking is to compare all patterns and see which ones include others and pick the topmost one as base for the group. So in our example, the base dir would be ../ |
Are absolute paths patterns allowed? In that case, just checking for ./ and ../ and ../ won't be enough, there can be collisions anyway, and let's not even mention symlinks. I suppose that if absolute paths are used, the user can accept the responsibility that there might be not optimally efficient (if it's documented) and it might be enough to consider only the relative patterns. |
Fixed by #320. Will be shipped on this week. |
Environment
Actual behavior
Using dynamic patterns that start with ../ together with other dynamic patterns that will be put into the '.' group, doesn't work. All patterns are put inside the '.' group and my guess is that the file system walker won't go outside of the current directory and the ../ patterns will get ignored.
For example,
Expected behavior
All patterns are used.
Steps to reproduce
I am using this from a third party application, so I'm not sure how to reproduce other than creating patterns similar to the above that match something on your disk.
The text was updated successfully, but these errors were encountered: