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

Fixing the packager infinite loop on Windows #2789

Closed
wants to merge 2 commits into from

Conversation

mqli
Copy link
Contributor

@mqli mqli commented Sep 17, 2015

The issue here #2787

The root path '/' dosn't match windows root path

The issue here facebook#2787

The root path '/' dosn't match windows root path
@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 17, 2015
@mkonicek
Copy link
Contributor

Thanks for the PR!

@martinbigio Can you review this please?

@martinbigio
Copy link
Contributor

Looks good to me!

@martinbigio
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/830425153722383/int_phab to review.

@@ -226,7 +226,7 @@ class ResolutionRequest {
realModuleName => {
const searchQueue = [];
for (let currDir = path.dirname(fromModule.path);
currDir !== '/';
currDir !== path.parse(fromModule.path).root;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The result of the path.parse call is constant and this is being evaluated on each iteration so it makes sense to hoist this.

Thanks @sebmck , that make more sence.
@mqli
Copy link
Contributor Author

mqli commented Sep 18, 2015

Thanks @sebmck , yet I think the other code on master causing the ci building failed.

@martinbigio
Copy link
Contributor

@mqli the tests failures are unrelated. Could you update the PR with @sebmck suggestion?

@ghost ghost closed this in f5409c1 Sep 18, 2015
MattFoley pushed a commit to skillz/react-native that referenced this pull request Nov 9, 2015
Summary: The issue here facebook#2787

The root path '/' dosn't match windows root path
Closes facebook#2789

Reviewed By: @​svcscm

Differential Revision: D2452718

Pulled By: @martinbigio
cpojer pushed a commit to facebook/metro that referenced this pull request Jan 26, 2017
Summary: The issue here facebook/react-native#2787

The root path '/' dosn't match windows root path
Closes facebook/react-native#2789

Reviewed By: @​svcscm

Differential Revision: D2452718

Pulled By: @martinbigio
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants