-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
[enh] Add the arch argument to ynh_install_nodejs #660
Conversation
Uh technically this looks good, but shouldn't we try to detect the arch and feed it to the node command, instead of leaving this job to the app packager ? |
Well, in N, there is already an arch detection: https://github.com/tj/n/blob/master/bin/n#L411, so we don't need to implement one in ynh_install_nodejs. The only issue is: for now, N arch detection doesn't work for aarch64/arm64 and N maintainer doesn't seem to want to implement it even if there is already a PR to solve it |
Hmokay, but what I mean is why don't we add, in this helper, something like
and feed that to the node command ? I mean, otherwise the app packager will have to think about doing this him/herself, for each apps, and know how to do this and that doesn't look quite obvious ... ? Or am I missing something x_X |
Good point, instead of adding an argument to ynh_install_nodejs, let him do the job... I will change the PR |
and let ynh_install_nodejs manage the issue
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
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 👍
The problem
When installing nodejs on arm64 and arch64, N - Node.js version management handle the architecture as AMD64 and the nodejs installation failed
Solution
Use the N - Node.js version management argument --arch to specify an architecture
PR Status
Done
How to test
There is a package with the functionality setuped:
yunohost app install https://github.com/YunoHost-Apps/wikijs_ynh/tree/arm --debug
Validation