-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Should this module always return a path ending in a separator? #8
Comments
could this be because of something that |
also, there is an existing related issue where we discussed this at one point (I believe it was related): #3 |
@jonschlinkert I don't think |
I think it make sense what @phated says. Or at least for 90% (or more) of the cases it is used for such thing. |
Is this just to preserve the pre-existing test assertions that assumed the output would contain the trailing separator, or is there some further need for it that I'm not seeing? It strikes me as a little arbitrary, proper use of the core path lib like That said, we've made changes to bring this in line with glob2base behavior before and I don't mind doing it again. Seems like it would be better to put it out with a major version bump than to go evaluate whether this might have any adverse impact on any downstream users. Would it just be |
@es128 I was mostly concerned about an issue we received back in August (gulpjs/glob-stream#68) in which the The more I think about this, we are already removing the trailing separator on |
This strikes me as one of those things that's ripe for bikeshedding, and for which consistency is more important than the one choice or the other. I could argue either side and ultimately find myself agnostic on it overall. What would be the best way to achieve consistency among the modules within our control with the least amount of change/disruption? |
I am pushing forward on the next breaking major release on |
Sure, I'm on board with that and will be supportive of whatever you end up concluding would be best. |
I'm fine with closing this. I like the consistency of removing the trailing separator (this decision bubbles up through our dependency tree already). |
This module was adopted in
glob-stream
as a drop-in replacement toglob2base
; however, we've needed to add a bunch of workarounds into theglob-stream
codebase to make this work.Do you think it makes sense to always return a path ending in a separator due to
path.dirname
being called on each segment (thus the parent should always be a directory)?I'd like to write:
but currently have to use:
to get my test suite to pass correctly.
@jonschlinkert @es128 thoughts?
The text was updated successfully, but these errors were encountered: