-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
vfs.src glob does not match symlinks #349
Comments
@phated It appears this is a regression in glob-stream 8, presumably introduced by gulpjs/glob-stream#118 But, even in glob-stream 7 the behaviour with symlinks is.... odd. I have the following directory structure
And this is my test file gs("./test/**/*.js").pipe(
map((file, cb) => {
console.log(file.path.replace(process.cwd(), ""));
cb(null, file);
})
); With glob-stream 7, the glob
With glob-stream 7, the glob
With glob-stream 8, the glob
With glob-stream 8, the glob
So - there's definitely a regression in glob-stream 8, but the behaviour in 7 was also a bit wonky. I would expect that the I believe this is caused by the new walkdir implementation containing an insufficient check for symlinks Is this something you would accept a PR to fix, or add an option to traverse into symlinks? |
Thanks for diving in so deeply. 🙏 This definitely seems like a bug I introduced in the new implementation. I'm happy to receive a patch! |
Before you open this issue, please complete the following tasks:
What were you expecting to happen?
vfs.src(["./test/**/*.js"])
to match files that are in symlinked directories inside oftest
What actually happened?
It doesn't.
Please give us a sample of your gulpfile
I'm not using gulp, using vinyl-fs directly
See also this reproduction https://github.com/joshhunt/vinyl-fs-symlink-repro
Terminal output / screenshots
Please provide the following information:
node -v
): v20.9.0npm -v
): 10.1.0Additional information
The text was updated successfully, but these errors were encountered: