Skip to content

Commit ef7e98f

Browse files
committed
Print a line per downloaded crate
This commit brings back the old one-line-per-crate output that Cargo's had since the beginning of time but was removed in #6005. This was requested on our [users forum][1] [1]: https://internals.rust-lang.org/t/testing-cargos-parallel-downloads/8466/2
1 parent 650b5d8 commit ef7e98f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cargo/core/package.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,10 @@ impl<'a, 'cfg> Downloads<'a, 'cfg> {
540540
};
541541

542542
// If the progress bar isn't enabled then we still want to provide some
543-
// semblance of progress of how we're downloading crates.
544-
if !self.progress.borrow().as_ref().unwrap().is_enabled() {
545-
self.set.config.shell().status("Downloaded", &dl.descriptor)?;
546-
}
543+
// semblance of progress of how we're downloading crates, and if the
544+
// progress bar is enabled this provides a good log of what's happening.
545+
self.progress.borrow_mut().as_mut().unwrap().clear();
546+
self.set.config.shell().status("Downloaded", &dl.descriptor)?;
547547

548548
self.downloads_finished += 1;
549549
self.downloaded_bytes += dl.total.get();

0 commit comments

Comments
 (0)