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 was trying to copy files from one folder to another and filter out some files in the process (I was moving an old grunt build task to gulp). When I use options.nocase = true no files were returned, but when it was false it did return files. Apparently this only happens on Windows.
This issue goes back months (search for nocase in node-glob). There is a fix for it at: isaacs/node-glob#146
I took the changes that @staticshock did to glob/common.js and merged them and now everything works!
If you encounter the same issue and you are using gulp@3.9.0, you can take the updated common.js from: https://gist.github.com/etiktin/ff222bb73904189a1aa7
Place it in: node_modules\gulp\node_modules\vinyl-fs\node_modules\glob-stream\node_modules\glob
The node-glob maintainer (@isaacs) is taking his time with merging it (I'm not criticizing, he has his reasons). I suggest to consider replacing node-glob with a fork that adds the patch, until it's fixed upstream.
The text was updated successfully, but these errors were encountered:
I was trying to copy files from one folder to another and filter out some files in the process (I was moving an old grunt build task to gulp). When I use
options.nocase = true
no files were returned, but when it was false it did return files. Apparently this only happens on Windows.Here's a simplified version:
This issue goes back months (search for
nocase
in node-glob). There is a fix for it at: isaacs/node-glob#146I took the changes that @staticshock did to glob/common.js and merged them and now everything works!
If you encounter the same issue and you are using gulp@3.9.0, you can take the updated common.js from: https://gist.github.com/etiktin/ff222bb73904189a1aa7
Place it in:
node_modules\gulp\node_modules\vinyl-fs\node_modules\glob-stream\node_modules\glob
The node-glob maintainer (@isaacs) is taking his time with merging it (I'm not criticizing, he has his reasons). I suggest to consider replacing node-glob with a fork that adds the patch, until it's fixed upstream.
The text was updated successfully, but these errors were encountered: