Skip to content

add asdf-vm support in react-native-xcode.sh #30111

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

Closed
wants to merge 1 commit into from
Closed

add asdf-vm support in react-native-xcode.sh #30111

wants to merge 1 commit into from

Conversation

pastleo
Copy link
Contributor

@pastleo pastleo commented Oct 6, 2020

About asdf-vm: https://asdf-vm.com/

Summary

This PR add asdf-vm support to find-node.sh for scripts/react-native-xcode.sh in Bundle React Native code and images build phrase and potentially other scripts using find-node.sh to get executable nodejs

Changelog

[iOS] [Added] - add asdf-vm support in find-node.sh

Test Plan

Xcode is able to complete Bundle React Native code and images build phrase without errors when node is installed by asdf-vm

@facebook-github-bot
Copy link
Contributor

Hi @pastleo!

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 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.

If you have received this in error or have any questions, please contact us at [email protected]. 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 Oct 6, 2020
@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!

@react-native-bot react-native-bot added Platform: iOS iOS applications. Type: Enhancement A new feature or enhancement of an existing feature. labels Oct 7, 2020
@pvinis
Copy link
Contributor

pvinis commented Aug 13, 2021

I guess this and #31317 can go together. I see some tiny differences, -x, -s, -f not used the same way.

@pvinis
Copy link
Contributor

pvinis commented Aug 13, 2021

also, why is this script for xcode not using the find-node script??! The change there should be enough for all the things within RN to find the right node without duplicating code.

@charlesbdudley charlesbdudley self-assigned this Sep 20, 2021
@facebook-github-bot
Copy link
Contributor

@charlesbdudley has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@charlesbdudley
Copy link
Contributor

HI @pastleo, can we move this change to find-node.sh alongside the other environment manager code?

@pastleo
Copy link
Contributor Author

pastleo commented Sep 21, 2021

also, why is this script for xcode not using the find-node script??! The change there should be enough for all the things within RN to find the right node without duplicating code.

because this PR was created (2020/10) before scripts/find-node.sh (2021/1, if the commit history is correct)

HI @pastleo, can we move this change to find-node.sh alongside the other environment manager code?

sure, please do, and maybe I should close this PR?

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Sep 21, 2021
@charlesbdudley
Copy link
Contributor

@pastleo, sorry, I meant do you mind making the change? :)

@pastleo
Copy link
Contributor Author

pastleo commented Sep 22, 2021

@pastleo, sorry, I meant do you mind making the change? :)

OK, but I wasn't developing RN for quite a while now, I will make the change when I have time (and setup a project to test as well)
Should I open new PR? or just modify this one?

@pastleo
Copy link
Contributor Author

pastleo commented Sep 23, 2021

@charlesbdudley I just moved the change to find-node.sh, also created a new RN project to test and it is working

@facebook-github-bot
Copy link
Contributor

@charlesbdudley has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @pastleo in 3e7c310.

When will my fix make it into a release? | Upcoming Releases

2 similar comments
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @pastleo in 3e7c310.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @pastleo in 3e7c310.

When will my fix make it into a release? | Upcoming Releases

@pastleo pastleo deleted the patch-1 branch September 28, 2021 19:54
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. Needs: Attention Issues where the author has responded to feedback. Platform: iOS iOS applications. Type: Enhancement A new feature or enhancement of an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants