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

update asdf-vm setup to use $ASDF_DIR to work if user defined custom directory #36043

Closed
wants to merge 1 commit into from

Conversation

MuhmdRaouf
Copy link
Contributor

Summary

Update setup of sourcing asdf-vm in find-node-for-xcode.sh in case of user has custom defined of $ASDF_DIR
by default $ASDF_DIR point to $HOME/.asdf, but if user has custom directory (like XDG convention) this script wont work without this change.

Changelog

[GENERAL] [CHANGED] - Find node binary when using asdf as the node version manager with custom $ASDF_DIR

Test Plan

use a defualt/custom $ASDF_DIR while using asdf-vm as node version manager then make iOS build.

@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 Feb 2, 2023
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,466,249 -253
android hermes armeabi-v7a 7,787,821 -209
android hermes x86 8,940,986 -199
android hermes x86_64 8,798,905 -231
android jsc arm64-v8a 9,649,610 +663
android jsc armeabi-v7a 8,384,773 +716
android jsc x86 9,712,224 +700
android jsc x86_64 10,189,189 +688

Base commit: 5647d79
Branch: main

@cortinico cortinico requested a review from cipolleschi February 2, 2023 17:00
Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

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

It looks good to me. Thank you for fixing this.

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 7, 2023
@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in f6a4e4f.

@MuhmdRaouf MuhmdRaouf deleted the asdf-patch branch February 7, 2023 15:06
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…tom directory (facebook#36043)

Summary:
Update setup of sourcing `asdf-vm` in `find-node-for-xcode.sh` in case of user has custom defined of `$ASDF_DIR`
by default `$ASDF_DIR` point to `$HOME/.asdf`, but if user has custom directory (like XDG convention) this script wont work without this change.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[GENERAL] [CHANGED] - Find node binary when using asdf as the node version manager with custom `$ASDF_DIR`

Pull Request resolved: facebook#36043

Test Plan: use a defualt/custom `$ASDF_DIR` while using `asdf-vm` as node version manager then make iOS build.

Reviewed By: cortinico

Differential Revision: D42990407

Pulled By: cipolleschi

fbshipit-source-id: 1fe3fdc786bddf741ff422e7bec55a6c9cc8ed83
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. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants