Skip to content

Commit

Permalink
Improve notarization output check
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Aug 12, 2024
1 parent 6cfc120 commit 75214aa
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,15 +370,27 @@ pub fn install_version(
&paths.juliaupconfig.display()
)
})?;

Check warning on line 372 in src/operations.rs

View workflow job for this annotation

GitHub Actions / Rustfmt Check

Diff in /home/runner/work/juliaup/juliaup/src/operations.rs
let _ = std::process::Command::new(&julia_path)

print!("Checking standard library notarization");
let _ = std::io::stdout().flush();

let exit_status = std::process::Command::new(&julia_path)
.env("JULIA_LOAD_PATH", "@stdlib")
.arg("--startup-file=no")
.arg("-e")
.arg("println(\"Checking standard library notarization\"); foreach(p -> @eval(import $(Symbol(p))), filter!(x -> isfile(joinpath(Sys.STDLIB, x, \"src\", \"$(x).jl\")), readdir(Sys.STDLIB))); println(\"Finished checking standard library notarization\")")
.arg("foreach(p -> begin print('.'); @eval(import $(Symbol(p))) end, filter!(x -> isfile(joinpath(Sys.STDLIB, x, \"src\", \"$(x).jl\")), readdir(Sys.STDLIB)))")
// .stdout(std::process::Stdio::null())
// .stderr(std::process::Stdio::null())
// .stdin(std::process::Stdio::null())
.status();
.status()
.unwrap();

Check warning on line 387 in src/operations.rs

View workflow job for this annotation

GitHub Actions / Rustfmt Check

Diff in /home/runner/work/juliaup/juliaup/src/operations.rs
if exit_status.success() {
println!("done.")
}
else {
println!("failed with {}.", exit_status);
}
}

Ok(())
Expand Down

0 comments on commit 75214aa

Please sign in to comment.