Skip to content

install.sh checks for rustc and cargo but not rustup. #999

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

Closed
shaleh opened this issue May 16, 2022 · 7 comments
Closed

install.sh checks for rustc and cargo but not rustup. #999

shaleh opened this issue May 16, 2022 · 7 comments

Comments

@shaleh
Copy link

shaleh commented May 16, 2022

However, rustup is used at the end to install Clippy.
While it is likely uncommon to end up with rustc and cargo but not rustup it is possible.

@eirnym
Copy link

eirnym commented Jun 13, 2023

It's quite possible to end up with rust and cargo without rustup. When you install it package manager like Homebrew or MacPorts, without rustup itself. I haven't checked numerious Linux distributions and FreeBSD, but my guess is the same

For me personally it even more preferrable way to don't install rustup itself if I have way to install rust via a package manager. In other words I don't trust binaries and shell scripts from the internet

@eirnym
Copy link

eirnym commented Jun 14, 2023

By the way, rust installation from distributions like mentionend above is one of recommended ways to install rust:

https://forge.rust-lang.org/infra/other-installation-methods.html

@manyinsects
Copy link
Member

The recommended way to install Rust has, and will likely always be rustup. I do agree that sometimes installing from distro package managers, or from source can be preferential, and I think we could probably provide an installation script flag to skip these rustup-specific checks.

@eirnym
Copy link

eirnym commented Jun 21, 2023

Please do. Rustling doesn't depend on nightly or other builds than stable. Tooling like clippy is important, and it's usually installed by a package manager

@manyinsects
Copy link
Member

Tooling like clippy is important, and it's usually installed by a package manager

Not quite true, the recommended way to install Clippy is via rustup component add clippy :) That doesn't detract from your point, though.

@mo8it
Copy link
Contributor

mo8it commented Mar 30, 2024

Closing because the installation script will be removed by #1919

After implementing #1935, Cargo should tell the user to install Clippy.

@mo8it mo8it closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2024
@eirnym
Copy link

eirnym commented Mar 31, 2024

@mo8it FYI, clippy and some other tooling is installed by package managers during Rust installation. I hope new way to install wouldn't depend on Nightly

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

4 participants