FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

module: the node_modules paths always should be placed below the current directory by watilde · Pull Request #5690 · nodejs/node · GitHub

/ node Public

module: the node_modules paths always should be placed below the current directory - #5690

Closed
watilde wants to merge 1 commit into
nodejs:masterfrom
watilde:patch-module
Closed

module: the node_modules paths always should be placed below the current directory#5690
watilde wants to merge 1 commit into
nodejs:masterfrom
watilde:patch-module

Conversation

watilde commented Mar 13, 2016

Copy link
Copy Markdown
Member

Pull Request check-list

Please make sure to review and check all of these items:

  • Does make -j8 test (UNIX) or vcbuild test nosign (Windows) pass with
    this change (including linting)?
  • Is the commit message formatted according to CONTRIBUTING.md?
  • If this change fixes a bug (or a performance problem), is a regression
    test (or a benchmark) included?
  • Is a documentation update included (if this change modifies
    existing APIs, or introduces new ones)?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.

Affected core subsystem(s)

repl

Description of change

Fix #5684. The result of the require("module")._resolveLookupPaths('./') in repl

Before:

[ './',
  [ '/Users/watilde/Development/tmp/repro/node_modules',
    '/Users/watilde/Development/tmp/node_modules',
    '/Users/watilde/Development/node_modules',
    '/Users/watilde/node_modules',
    '/Users/node_modules',
    '/node_modules',
    '.',
    '/Users/watilde/.node_modules',
    '/Users/watilde/.node_libraries',
    '/Users/watilde/.nodebrew/node/v5.4.0/lib/node' ] ]

After:

[ './',
  [ '/Users/watilde/Development/tmp/repro',
    '/Users/watilde/Development/tmp/repro/node_modules',
    '/Users/watilde/Development/tmp/node_modules',
    '/Users/watilde/Development/node_modules',
    '/Users/watilde/node_modules',
    '/Users/node_modules',
    '/node_modules',
    '/Users/watilde/.node_modules',
    '/Users/watilde/.node_libraries',
    '/Users/watilde/Development/node/out/lib/node' ] ]

will update test/parallel/test-repl.js

Copy link
Copy Markdown
Contributor

@watilde thanks for submitting but it looks like @phillipj just beat you to it with #5689
Closing for now, but feel free to add comments to the other thread

watilde commented Mar 13, 2016

Copy link
Copy Markdown
Member Author

Oops, this is duplicated with #5689.

watilde deleted the patch-module branch March 13, 2016 21:10

Copy link
Copy Markdown
Member

@watilde sorry! By this I learned I should always leave a "I'm on it" comment when starting on something.

watilde commented Mar 13, 2016

Copy link
Copy Markdown
Member Author

@phillipj nvm 😊
I just was overlooked your PR. Also, yeah leaving a comment may be helpful sometimes.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

relative module paths resolve differently in REPL.

3 participants


Back | FazBrowse Home | New Git URL