You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just in the process of upgrading from Gulp v3.9.1 to v4.0.2 and I've run into an issue with glob patterns - it's rather similar to #306 but I think the circumstances are slightly different so wanted to report it separately just in case. Please feel free to close this if you think they are in fact the same issue.
What were you expecting to happen?
When setting the { nodir: true } option in gulp.src(), if the glob path contains a parent directory selector (i.e. ../) then directories are included regardless of the specified option.
What actually happened?
Given the following directory/file structure
gulp.src('a/b/../**/*', { nodir: true }) will return 5 items (3 .txt files and 2 directories) even though it is told not to include directories and should therefore only include 3 items.
Please post a sample of your gulpfile (preferably reduced to just the bit that's not working)
We've dropped the node-glob dependency inside of glob-stream so there is no more nodir option. That being said, we don't support . or .. in the middle of globs so you should resolve them before you pass them to src.
I'm just in the process of upgrading from Gulp v3.9.1 to v4.0.2 and I've run into an issue with glob patterns - it's rather similar to #306 but I think the circumstances are slightly different so wanted to report it separately just in case. Please feel free to close this if you think they are in fact the same issue.
What were you expecting to happen?
When setting the
{ nodir: true }
option ingulp.src()
, if the glob path contains a parent directory selector (i.e.../
) then directories are included regardless of the specified option.What actually happened?
Given the following directory/file structure
gulp.src('a/b/../**/*', { nodir: true })
will return 5 items (3 .txt files and 2 directories) even though it is told not to include directories and should therefore only include 3 items.Please post a sample of your gulpfile (preferably reduced to just the bit that's not working)
What version of gulp are you using?
v4.0.2 (previously v3.9.1)
What versions of npm and node are you using?
npm -v 6.9.0
node -v 10.16.0
The text was updated successfully, but these errors were encountered: