Skip to content

Commit 6617431

Browse files
committed
Provide more information on progress
1 parent 6ca0869 commit 6617431

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/cli/self_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ pub(crate) fn install(
372372
} else if !quiet && plan == VsInstallPlan::Automatic {
373373
md(&mut term, MSVC_AUTO_INSTALL_MESSAGE);
374374
if common::confirm(
375-
"Automatically download and install Visual Studio 2022 Community edition? (Y/n)",
375+
"\nAutomatically download and install Visual Studio 2022 Community edition? (Y/n)",
376376
true,
377377
)? {
378378
try_install_msvc()?;

src/cli/self_update/windows.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ pub(crate) fn try_install_msvc() -> Result<()> {
110110
let visual_studio = tempdir.path().join("vs_setup.exe");
111111
let download_tracker = RefCell::new(DownloadTracker::new().with_display_progress(true));
112112
download_tracker.borrow_mut().download_finished();
113+
114+
info!("downloading Visual Studio installer");
113115
utils::download_file(&visual_studio_url, &visual_studio, None, &move |n| {
114116
download_tracker
115117
.borrow_mut()
@@ -144,6 +146,8 @@ pub(crate) fn try_install_msvc() -> Result<()> {
144146
"Microsoft.VisualStudio.Component.Windows11SDK.22000",
145147
]);
146148
}
149+
info!("running the Visual Studio install");
150+
info!("rustup will continue once Visual Studio installation is complete\n");
147151
let exit_status = cmd
148152
.spawn()
149153
.and_then(|mut child| child.wait())

0 commit comments

Comments
 (0)