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

Add platform detection install script similar to 'rustup.sh' #186

Closed
bvssvni opened this issue Jul 13, 2014 · 6 comments
Closed

Add platform detection install script similar to 'rustup.sh' #186

bvssvni opened this issue Jul 13, 2014 · 6 comments

Comments

@bvssvni
Copy link

bvssvni commented Jul 13, 2014

  • Should use target triple instead of just linux, win and mac.
  • Support both install and uninstall

Source:

http://www.rust-lang.org/rustup.sh

Link suggestion:

http://www.rust-lang.org/cargoup.sh

@wycats
Copy link
Contributor

wycats commented Jul 14, 2014

👍

@alexcrichton what do we have to do to make this happen. We also discussed last week having it included in the Rust rustup.sh and @brson seemed amenable to the idea iirc.

@steveklabnik
Copy link
Member

Super +1 to just having it in the Rust rustup.sh, because then you'll
never get a version mismatch.

@brson
Copy link
Contributor

brson commented Jul 14, 2014

Cargo still needs a strategy for installing and uninstalling itself. rustup is just a script that downloads and runs an installer.

I might suggest having it 'tap into' Rust's installer so, register itself in the manifest, so that the Rust installer also uninstalls cargo, but Rust has multiple installation methods, not all of which use the same uninstall mechanism.

@alexcrichton
Copy link
Member

@alexcrichton
Copy link
Member

Merged upstream!

The main rustup.sh script now installs cargo unless you specify --disable-cargo

@bvssvni
Copy link
Author

bvssvni commented Jul 14, 2014

Nice!

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

5 participants