-
Notifications
You must be signed in to change notification settings - Fork 392
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
Homebrew install is not supported with nvm #1942
Comments
Does it not work or is it just unsupported? The simplicity of brew trumps them not wanting to answer questions about it imo, unless we run into issues with it. |
this is the only part that concerned me after reading the docs? but maybe an edge case
yes it does work so perhaps its non-issue. Only other thing I can think of is that the brew list &>/dev/null wont catch a previously curl'd install and you'll get a double nvm complication, so maybe switching to command -v could be helpful |
https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh seems to be the recommended path here. Overall torn as it's good to be default friendly to a macOS install in our install scripts though, and since zsh is the default now... But curl and go isn't really a strategy I enjoy, which is partly why I've leaned on homebrew so heavily in install scripts. Hmmm 🤔 |
One thing i've considered as an alternative (solving the reproducibility vs repeatability problem) is https://nixos.org. https://nixos.org/manual/nix/stable/ I love the idea, feels like the right amount of containerization with vagrant-esq builds https://nixos.org/guides/towards-reproducibility-pinning-nixpkgs.html#pinning-nixpkgs. In terms of security I believe Nix packages are checked against hashes to ensure they are unmodified which makes curl a lot more palatable |
Why wouldn't we simply remove the broken brew command and install nvm the recommended way? |
The answer, btw, is because curl-and-pipe is how you get pwned, and ideally you should do it when you know you're doing it as opposed to hidden behind an install script. If we want to use nvm and install it this way, I suggest making the install script stop and warn the user it's about to pipe the specific URL on over. |
I agree that curl and bash is how you get owned. We don't want to take that kind of responsibility. I suggest the following:
|
nvm installation isn't homebrew supported, initially I opened a pr but I realized we should probably update the macos-setup.sh to something that isn't piping curl to bash?
https://github.com/nvm-sh/nvm#installing-and-updating
The text was updated successfully, but these errors were encountered: