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

Correctly reference cwd instead of __dirname #7671

Closed
wants to merge 1 commit into from
Closed

Correctly reference cwd instead of __dirname #7671

wants to merge 1 commit into from

Conversation

jwyld
Copy link
Contributor

@jwyld jwyld commented May 21, 2016

This is for issue #7670. I consider this a typo, but maybe you don't.

In order to see the problem, you need to have the packager search for the configuration in a place that doesn't have one and the default configuration can't be provided. It's likely that no one is doing this and also why this probably wasn't seen.

@ghost
Copy link

ghost commented May 21, 2016

By analyzing the blame information on this pull request, we identified @janicduplessis and @martinbigio to be potential reviewers.

@ghost
Copy link

ghost commented May 21, 2016

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!

@janicduplessis
Copy link
Contributor

What path will this display before and after your change?

@jwyld
Copy link
Contributor Author

jwyld commented May 25, 2016

For 99% (or higher) of all uses, it will be exactly the same value as the previous value since __dirname is almost always the same as the passed in cwd value.

I'm currently playing with a setup which allows passing the rn-cli.config.js file location to the bundler. As a result, cwd is not __dirname, but no one else has this code either.

@ghost
Copy link

ghost commented May 25, 2016

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

@ghost ghost 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 May 25, 2016
@janicduplessis
Copy link
Contributor

Ok, I had a look at the code and it makes sense to show cwd in the error message since that is the directory we are searching in. Thanks for the fix!

@facebook-github-bot shipit

@ghost ghost added GH Review: accepted Import Started This pull request has been imported. This does not imply the PR has been approved. and removed GH Review: review-needed labels May 25, 2016
@ghost
Copy link

ghost commented May 25, 2016

Thanks for importing. If you are an FB employee go to Phabricator to review.

@ghost ghost closed this in af149b3 May 26, 2016
samerce pushed a commit to iodine/react-native that referenced this pull request Aug 23, 2016
Summary:
This is for issue facebook#7670.  I consider this a typo, but maybe you don't.

In order to see the problem, you need to have the packager search for the configuration in a place that doesn't have one and the default configuration can't be provided.  It's likely that no one is doing this and also why this probably wasn't seen.
Closes facebook#7671

Differential Revision: D3350412

fbshipit-source-id: 5f9b520f7d5cbc749e2b898e7bbf2cd84d81ace0
mpretty-cyro pushed a commit to HomePass/react-native that referenced this pull request Aug 25, 2016
Summary:
This is for issue facebook#7670.  I consider this a typo, but maybe you don't.

In order to see the problem, you need to have the packager search for the configuration in a place that doesn't have one and the default configuration can't be provided.  It's likely that no one is doing this and also why this probably wasn't seen.
Closes facebook#7671

Differential Revision: D3350412

fbshipit-source-id: 5f9b520f7d5cbc749e2b898e7bbf2cd84d81ace0
grabbou pushed a commit to react-native-community/cli that referenced this pull request Sep 26, 2018
Summary:
This is for issue #7670.  I consider this a typo, but maybe you don't.

In order to see the problem, you need to have the packager search for the configuration in a place that doesn't have one and the default configuration can't be provided.  It's likely that no one is doing this and also why this probably wasn't seen.
Closes facebook/react-native#7671

Differential Revision: D3350412

fbshipit-source-id: 5f9b520f7d5cbc749e2b898e7bbf2cd84d81ace0
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. Import Started This pull request has been imported. This does not imply the PR has been approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants