-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Shorter URL for install script? #1017
Comments
This is related to #400 but not an exact duplicate, so I'll leave it open. This could be achieved by keeping a However, I'm not so sure it's a good idea to enable people to blindly update their software to what might be a breaking version. |
We manage the nvm installation with a script for new computers. But now I have to manually track new releases and update the install URL each time. A version independent URL would be appreciated. |
I just installed via: Unless I'm mistaken, please correct me if I am, since install.sh#L14 is specifying the latest version number, using the raw master branch URL should work for installing and upgrading. I guess doing this through the |
@coreygo nope, if you use You should only ever install from a tagged release. |
@ljharb I typically check install scripts and release notes beforehand but purposely breaking to screw with people seems... Eek. |
@coreygo i'm being a bit melodramatic :-) but it's more like, if i have major refactors going on, i do not think twice about pushing broken code to master, because master is for development, not for direct use. |
@ljharb Heh. No worries, I get that. I'd probably go with the |
@ljharb Always amused how developers [randomly] agree on best practices… I've been clean installing, updating dotfiles, and I just finished installing Homebrew (which does use the raw master branch URL for the install script) when I noticed nvm hard coding the version. 😜 |
Can you add a gh-pages branch that with the download script? It would be nice to be able to just remember something like
curl -o- http://creationix.githubio/nvm|bash
than having to look up the install command each time. This is similar to get-pip.py and other tools.Since github pages doesn't allow for automatic redirection rules (like grabbing the latestThis script could also probable be made to fetch the releases list and use that to get the latest tag. This way it would never need to be updated. Maybe something like:
The text was updated successfully, but these errors were encountered: