Open
Description
What actually happened?
A ' File not found with singular glob' error will be thrown if a file path will be defined after a negative glob.
That's a regression to 6.1.0
and it seems that this issue is caused by the fact that anymatch#matchPatterns
function just returns the index of the patterns
array which does not include the negative patterns.
Therefore ourGlobs[matchIdx]
returns the wrong glob.
- https://github.com/micromatch/anymatch/blob/cbd278e43710eaf325d2061fa11aefd127c509be/index.js#L63
- https://github.com/gulpjs/glob-stream/blob/77826594b4479fe5fefd6a751c28c7f686c24a87/index.js#L318C41-L319C1
Please give us a sample of your gulpfile
I added two tests at my fork:
-https://github.com/curvedriver/glob-stream/pull/1/files
file path before negative glob
works as expectedfile path after negative glob
throws the mentionedError: File not found with singular glob:
See:
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status