-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Add volta support to find-node.sh #32611
Conversation
Hi @liamjones! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Base commit: d123a6f |
Base commit: d123a6f |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
@yungsters has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This one might need a bit more work. While the change I've done does add volta support, and it works for builds there's something weird going on with respect to the codegen not finding volta (and I missed that because my first build wasn't via volta) - more info here. So realistically, this doesn't complete support for volta yet. @yungsters should I close the PR and re-raise it when the issue is resolved? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@yungsters merged this pull request in 7658440. |
Summary
This PR add volta support to find-node.sh for use by
scripts/react-native-xcode.sh
,scripts/generate-specs.sh
, etc.Changelog
[iOS] [Added] - add volta support to find-node.sh
Test Plan
Manually tested with volta installed node (and relevant change added to the project's package.json). Without this patch, the
Bundle React Native code and images
Build Phase fails, with it, it succeeds.Tested with both
curl https://get.volta.sh | bash
installed andbrew install volta
. One check works for both because thenode
shim will always be installed to the same location (and the required environment variable exports are the same also)Wasn't sure if you'd want the package.json change applied to rn-tester? Shouldn't affect people who don't use volta. Shout if you want me to add it to this PR.