From 332fcce4cf73661a7211c096f6e6abfc97d2eff9 Mon Sep 17 00:00:00 2001 From: Schell Carl Scivally Date: Sun, 8 Dec 2024 10:56:32 +1300 Subject: [PATCH] more debugging - print contents of release dir on failure --- crates/cargo-gpu/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/cargo-gpu/src/main.rs b/crates/cargo-gpu/src/main.rs index 2d72171..a4225d9 100644 --- a/crates/cargo-gpu/src/main.rs +++ b/crates/cargo-gpu/src/main.rs @@ -400,6 +400,11 @@ impl Install { std::fs::rename(&cli_path, &dest_cli_path).unwrap(); } else { log::error!("could not find {}", cli_path.display()); + log::debug!("contents of '{}':", release.display()); + for entry in std::fs::read_dir(&release).unwrap() { + let entry = entry.unwrap(); + log::debug!("{}", entry.file_name().to_string_lossy()); + } panic!("spirv-builder-cli build failed"); } } @@ -797,6 +802,7 @@ mod test { #[test] fn cached_checkout_dir_sanity() { + // Test that let spirv = Spirv::default(); let dir = spirv.cached_checkout_path(); let name = dir