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

Fixes #2807 adds info message if self-update is disabled #2845

Merged
merged 1 commit into from
Dec 24, 2021

Conversation

kushaldas
Copy link
Contributor

If self-update is disabled via features during build time, then
we should better info message during update that the rustup
itself is not updated.

How did I test?

  • cargo build --features no-self-update
  • mkdir home
  • RUSTUP_HOME=home CARGO_HOME=home target/debug/rustup-init --no-modify-path -y
  • RUSTUP_HOME=home CARGO_HOME=home ./home/bin/rustup update

Output from the last command:

info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu unchanged - rustc 1.54.0 (a178d0322 2021-07-26)

info: cleaning up downloads & tmp directories
info: self-update is disabled for this build of rustup
info: any updates to rustup will need to be fetched with your system package manager

If self-update is disabled via features during build time, then
we should better info message during `update` that the `rustup`
itself is not updated.
@kinnison
Copy link
Contributor

kinnison commented Sep 7, 2021

@carols10cents How do you feel about this - do you think it fixes #2807 in a way you think will work for others?

@kinnison kinnison merged commit 184a899 into rust-lang:master Dec 24, 2021
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

Successfully merging this pull request may close these issues.

2 participants