correctly resolve paths that are on networked drives#156
correctly resolve paths that are on networked drives#156ljharb merged 2 commits intobrowserify:masterfrom
Conversation
…ws networked drives Fixes browserify#155.
844f72e to
4fa2e4a
Compare
ljharb
left a comment
There was a problem hiding this comment.
Thanks - could you provide some tests along with this?
4fa2e4a to
895c192
Compare
|
@GeekMode ping, any interest in completing this PR? |
|
@ljharb I just found out about this issue because circular dependencies are NOT being resolved correctly on Windows by using https://github.com/pahen/madge/ it uses https://github.com/dependents/node-filing-cabinet/ which uses this resolve package. While it does work on macOs. After investigating for 2 days I've found that #155 is the same issue by debugging the code. After making the same modification the circular dependencies are found. If the author is not continuing with this PR I want to create a new one with tests. This is what came out of my investigation: Windows with fix from this PR: Windows with bug: macOS with fix from this PR: macOS with bug: Only thing that remains would be filtering out the duplicates. |
|
@TimvdEijnden thanks for confirming! please don't make another PR, but if you provide a link to the tests (on your own fork), I'll pull them into the PR so we can bring it in! |
|
@ljharb Yes I'll provide them today. |
|
@ljharb Here they are TimvdEijnden@2e4499b Once this is merged and published to NPM, I'll update the following projects to update the dependencies:
Then I can finally update the madge depedency in our project 😬 |
|
If all of those are properly using |
895c192 to
01e51f5
Compare
01e51f5 to
6a0acc8
Compare
|
Yes will check that first once resolve has a new release |
|
@ljharb Do you know when a new release is planned? |
|
No plans, just as soon as i have time to do it. |
- [Fix] `node-modules-paths`: correctly resolve paths that are on Windows networked drives (browserify#156) - [Fix] Make behavior consistent with require.resolve() for "shadowed" core modules (browserify#148)
|
v1.11.1 is released. |
This is to fix issue #155 where paths don't resolve when it refers to a networked location. The leading backslash gets stripped off which turns paths such as '\\ip\dir' into '\ip\dir'.