-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix: Traverse symlink folders #122
Conversation
if (err) { | ||
return cb(err); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure what to do about the error handling here. This cb
tells the queue an error occured, but presumably dirents.forEach(processDirent);
will continue processing, which could potentially error again...
Should it instead just throw the error and hope queue catches and emits it properly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out! It has me rethinking how things are queued, but I'll make those changes after I land this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshhunt Thank you so much for this! You are a true hero in digging into the issue and supplying a fix. Please let me know if there is anything I can do to keep you actively involved in our community <3
Neat - thanks for the quick review and getting this one in @phated. Do you think we could cut a release of vinyl-fs with this version? I'm happy to PR whatever's needed for that (just version bump?) |
@sunnysonx Please check in on the conversation in #125. A reproduction, or some debugging to understand what path it is choking on would be appreciated 🙏 |
@joshhunt I'm sorry, idk how it happened that I searched across all involved packages, but it seems that I ommited to search in glob-stream. Thank you |
#118 introduced a slight regression where symlinked directories would not be traversed during walkdir. This PR checks if dirents are symlinks + and traverses them as appropriate.
Fixes gulpjs/vinyl-fs#349