-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Make a link to install latest version? #3359
Comments
That would be blindly updating across breaking changes, and would be a terrible idea. Duplicate of #400. |
Just realised I can use this link: https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh |
Nope, because master is often broken. Only tagged releases are safe to use. |
@ljharb there are other use cases, like using cloud-init. Please consider updating the release asset name to a well known sticky one, or at least providing another asset that always has a fixed name, like nvm.zip, so https://github.com/nvm-sh/nvm/releases/latest/download/nvm.zip could be used for automating installs with cloud-init. You can have the zip contents reflect on version if you wish. |
Even better would be just to include the install.sh in the releases. But in the mean time, here is a very hacky solution to getting the latest install script that doesn't rely on magic version numbers or creation of temporary files etc
This should be quite easy to adapt to directly executing and installing the latest release node |
@emilfihlman your use case still has the problem that breaking changes will be silently installed, risking breaking your workflow. The proper solution is to always hardcode a version number or semver range. |
@ljharb I think it's not for this package to be concerned about that. The proper solution is definitely to not hardcore version numbers. That is the most awful thing to do. |
@emilfihlman it is absolutely for nvm to be concerned about circumstances that could cause nvm users to have a broken experience. Why is that the most awful thing to do? That's literally the universal consensus on all forms of dependencies in the entire security and tech ecosystem (too much, imo, even) |
I have script(s) installing nvm. And I'd like to just install the latest version.
Please consider making a url (somewhere) that would always point to the latest version of nvm.
E.g. this install command could be
The text was updated successfully, but these errors were encountered: