-
-
Notifications
You must be signed in to change notification settings - Fork 471
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
Ignores are always dot:true #227
Conversation
👍 |
👍 |
If anyone wants to weigh in on the substantial change here, take a look at these test cases: https://github.com/isaacs/node-glob/blob/dot-ignore/test/ignore.js#L34-L39 The relevant file structure looks like this:
The linked test cases go |
This sure seems like simpler behavior |
Alright, the requisite time for objection and testing has passed, and it seems to make everyone's use cases better. I'm gonna go ahead and land this. It's a SemVer-major bump, because of the change in behavior, but it's the right change, I believe. |
This does fix a bunch of issues and is indeed less surprising. Though, I don't understand why the other rules for the ignore patterns wouldn't match the main matching pattern's rules? (#166) Perhaps it is better to keep this simple, but having different rules for the matching and ignore patterns will likely lead to unexpected/counter-intuitive behavior. |
@UltCombo I don't understand the question. I think experience thus far has shown that having ignore patterns not match dot files is always more confusing than the alternative, even when the main pattern doesn't have |
@isaacs I agree that ignore patterns being always |
This works for me in milliseconds, but this code times out on only one of the tests, with identical parameters. An end event is never emitted. Any insight you can give me into what I might be doing wrong would be much appreciated. |
Related issues:
ignore
option doesn't work with thedot
option #166[EDIT: Added docs]