Skip to content
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

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

Closed
wants to merge 1 commit into from

Conversation

watilde
Copy link
Member

@watilde watilde commented Mar 13, 2016

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

@MylesBorins
Copy link
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
Copy link
Member Author

watilde commented Mar 13, 2016

Oops, this is duplicated with #5689.

@watilde watilde deleted the patch-module branch March 13, 2016 21:10
@phillipj
Copy link
Member

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

@watilde
Copy link
Member Author

watilde commented Mar 13, 2016

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

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