Skip to content
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

Installs rust even if rust is installed already #229

Closed
kornelski opened this issue Jul 20, 2014 · 3 comments
Closed

Installs rust even if rust is installed already #229

kornelski opened this issue Jul 20, 2014 · 3 comments

Comments

@kornelski
Copy link
Contributor

I've installed rust via brew install rust. On top of that I wanted to install cargo only, but when
I run rustup.sh it tries to install (another copy of) rust again.

I'd prefer if the install script checked for existence of rust first, or if there was a cargo-only install script.

@alexcrichton
Copy link
Member

Closing as working as intended, the rustup.sh script is used to install both rust and cargo. If you'd like to install only cargo you can download just the cargo tarball and run the install script contained within.

@kornelski
Copy link
Contributor Author

I've found that script on crates.io, listed as the way to install cargo.

I think in that context it's reasonable to expect it to be able to just
install cargo, and the fact it uses a generic unconditional rust installer
is an unfortunate implementation detail.

@alexcrichton
Copy link
Member

The wording around the installation procedure explicitly says:

This will get you the latest nightly build for your platform along with the latest Cargo.

If you're interested in just cargo itself, you'd likely come to this repository which has instructions in the README about how to install from just the cargo nightly.

It seems prudent to have some only-cargo instructions, however, and I would recommend opening an issue/PR at https://github.com/wycats/cargo-website for tweaks to the website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants