Skip to content

Commit 1c7e1b7

Browse files
committed
Fixes #2807 adds info message if self-update is disabled
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.
1 parent 52376ff commit 1c7e1b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cli/rustup_mode.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,11 @@ fn update(cfg: &mut Cfg, m: &ArgMatches<'_>) -> Result<utils::ExitCode> {
10281028
check_rustup_update()?;
10291029
}
10301030

1031+
if self_update::NEVER_SELF_UPDATE {
1032+
info!("self-update is disabled for this build of rustup");
1033+
info!("any updates to rustup will need to be fetched with your system package manager")
1034+
}
1035+
10311036
Ok(utils::ExitCode(0))
10321037
}
10331038

0 commit comments

Comments
 (0)