Skip to content

Commit 332fcce

Browse files
committed
more debugging - print contents of release dir on failure
1 parent 2bc8c8a commit 332fcce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/cargo-gpu/src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ impl Install {
400400
std::fs::rename(&cli_path, &dest_cli_path).unwrap();
401401
} else {
402402
log::error!("could not find {}", cli_path.display());
403+
log::debug!("contents of '{}':", release.display());
404+
for entry in std::fs::read_dir(&release).unwrap() {
405+
let entry = entry.unwrap();
406+
log::debug!("{}", entry.file_name().to_string_lossy());
407+
}
403408
panic!("spirv-builder-cli build failed");
404409
}
405410
}
@@ -797,6 +802,7 @@ mod test {
797802

798803
#[test]
799804
fn cached_checkout_dir_sanity() {
805+
// Test that
800806
let spirv = Spirv::default();
801807
let dir = spirv.cached_checkout_path();
802808
let name = dir

0 commit comments

Comments
 (0)