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.
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 expected
file path after negative glob throws the mentioned Error: File not found with singular glob:
See:
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.0and it seems that this issue is caused by the fact thatanymatch#matchPatternsfunction just returns the index of thepatternsarray which does not include the negative patterns.Therefore
ourGlobs[matchIdx]returns the wrong glob.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 globworks as expectedfile path after negative globthrows the mentionedError: File not found with singular glob:See: