-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Implement a "--patch" argument #1009
Comments
So this would be a special argument to |
Yes, It should be only for source code, the the command would be something like that: The script will start normally, download the file, make the checksum check and from there will apply the patch on the nvm source directory (for example: ~/.nvm/src/node-v0.9.3) the command-line syntax is like that:
the commands above just need be executed in the node src directory (~/.nvm/src/node-v0.9.3) after applying the patchs just proceed normally. |
Is |
Not sure, I always use it on all linux that I had, let me google it if I found the answer. |
From what I see right now, Linux distributions uses the GNU Patch, there are some notes about the traditional old patch POSIX:
FreeBSD uses their own patch program (probably due to license issue):
Looking for Mac OSX on internet seems to uses the GNU Patch too: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/patch.1.html However in my perception, it would not try to be complex, if someone needs to use some advanced option this user must do it manually instead of just execute the "--patch" argument |
My concern is that if it's not going to succeed, it should fail - meaning, |
I think it would affect more the advanced option than just applying the file into a current directory as default options. I can make tests to make sure it wouldn't fail by different patch applications. But in case the problem isn't caused by the patch application but in user patch file (maybe the user select the wrong patch file) I think it should be throw the error on screen and exit the nvm. Any other concern? |
I agree, if the patch won't complete successfully I would want it to exit nvm and print an error. I don't think I have any other concerns as long as the feature was accompanied by solid tests :-) PRs welcome! |
This is related to #1207. |
I'm closing this, since the solution to #1207 should work here. |
For who is trying to install specific old versions of nodejs on FreeBSD will face the issue #900.
However there is a good workaround to help the FreeBSD users to install it still using the nvm, it receive the list of patchs files and apply it after the checksum check.
For example:
It's a bit manually but make it a lot easier, for example, I'm developing a shell script for a project and I've changed it to work on FreeBSD too, With that implementation I can instruct to download the patchs and apply on nvm or I can do it by myself through shell script.
The text was updated successfully, but these errors were encountered: