Skip to content

Commit

Permalink
feat: print package contents (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Oct 5, 2023
1 parent baff09b commit 7d984b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/packaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use std::os::unix::prelude::OsStrExt;
#[cfg(target_family = "unix")]
use std::os::unix::fs::symlink;

use itertools::Itertools;
use tempfile::TempDir;
use walkdir::WalkDir;

Expand Down Expand Up @@ -742,6 +743,14 @@ pub fn package_conda(
}
}

// print sorted files
println!("\nFiles in package:\n");
tmp_files
.iter()
.map(|x| x.strip_prefix(tmp_dir_path).unwrap())
.sorted()
.for_each(|f| println!(" - {}", f.to_string_lossy()));

let output_folder =
local_channel_dir.join(output.build_configuration.target_platform.to_string());
tracing::info!("Creating target folder {:?}", output_folder);
Expand Down
4 changes: 2 additions & 2 deletions src/render/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,9 @@ async fn fetch_repo_data_records_with_progress(
}
Err(_) => {
progress_bar.set_style(errored_progress_style());
progress_bar.finish_with_message("Cancelled..");
progress_bar.finish_with_message("Canceled...");
// Since the task was cancelled most likely the whole async stack is being cancelled.
Err(anyhow::anyhow!("cancelled"))
Err(anyhow::anyhow!("canceled"))
}
},
}
Expand Down

0 comments on commit 7d984b0

Please sign in to comment.