Comments (8)
That would be blindly updating across breaking changes, and would be a terrible idea.
Duplicate of #400.
from nvm.
Nope, because master is often broken. Only tagged releases are safe to use.
from nvm.
@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.
from nvm.
@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.
from nvm.
Just realised I can use this link:
https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh
from nvm.
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
curl -sL "$(curl -sL https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r .zipball_url)" | busybox unzip -p - '*/install.sh' > nvm_install.sh
This should be quite easy to adapt to directly executing and installing the latest release node
from nvm.
@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.
from nvm.
@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)
from nvm.
Related Issues (20)
- uninstall failed HOT 2
- Consider adding an option for retrying binary downloads before switching to source code compilation or disable fallback to source code compilation if binary cannot be downloaded HOT 4
- [spam]
- "ls-remote",I'm a little confused as to how running that command didn't return the node version. HOT 11
- Unbound variable error with set -u.
- Fail to install with `install.sh` script HOT 5
- install-latest-npm does not work for node>=v14.17 HOT 1
- Potential 0.40.0 regression on Github Actions runners HOT 21
- unable to install nvm HOT 16
- [spam]
- Action Required: Fix Renovate Configuration HOT 7
- On Windows11, how to install nvm in Users profile? HOT 5
- zsh initialization performance HOT 3
- Version 0.40.0, command `nvm install` fails when `$NVM_DIR` path contains spaces HOT 2
- nvm installs node binary for armv7l instead of arm64 HOT 12
- Trash-put involving on nvm usage HOT 2
- [spam]
- `nvm_resolve_local_alias default` has bad performance
- uppercase in .nvmrc are handled differently for `use` and `install` commands HOT 6
- Is the download path of nodejs changed? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvm.