Print downloading message when downloading package

This commit is contained in:
Richard Feldman 2022-11-22 12:05:19 -05:00
parent 822f059e6e
commit 207160e22c
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -51,6 +51,10 @@ pub fn install_package<'a>(
Ok((dest_dir, root_module_filename))
} else {
// Download into a tempdir; only move it to dest_dir if hash verification passes.
println!(
"Downloading \u{001b}[36m{url}\u{001b}[0m\n into {}\n",
cache_dir.display()
);
let tempdir = tempfile::tempdir().map_err(Problem::IoErr)?;
let tempdir_path = tempdir.path();
let downloaded_hash =