-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Errors with ENOENT when directory is a dangling link #2
Comments
@erikkemperman this probably got buried in other emails. Do you have any thought on what the behavior should be for mkdirp'ing on a dangling symlink? |
@phated Sorry for late reply, pretty swamped just now... If the problem here is that we’re trying to create a directory under an ancestor which is a dangling link, I’d say throwing an error would be the correct thing to do. Probably something went wrong earlier, and quietly replacing the dead link with a regular directory just makes that harder to track down. Does that help? |
The issue is that |
@erikkemperman So |
Otherwise we could continue to error but do it with a better message? I want to determine the most intuitive behavior for this and don't necessarily want to mirror Also, this issue was brought to my attention because some user was trying to mkdirp at a dangling link. |
IMHO the behaviour of mkdir -p makes a lot of sense, actually, the "danger" being that we'd be obfuscating an earlier problem otherwise. And actually the error message I am now seeing on your |
I guess it just feels wrong... I'm going to think on this some more. |
Comments that I forgot to tie this to: |
I think we can either fix the error case or show a better error. Ref https://github.com/cristianl/testcase-vinyl-bug
cc @erikkemperman
The text was updated successfully, but these errors were encountered: