From f1101f833a36e86b3c0b570c40d01de0fc9f167d Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Mon, 20 Oct 2025 13:29:05 +0200 Subject: [PATCH] show an increasing count for notarizing stdlibs instead of just dots fixes https://github.com/JuliaLang/juliaup/issues/1076 --- src/operations.rs | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/operations.rs b/src/operations.rs index 9fd7f1b8..007c725e 100644 --- a/src/operations.rs +++ b/src/operations.rs @@ -410,23 +410,32 @@ pub fn install_version( ) })?; - eprint!("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("foreach(p -> begin print(stderr, '.'); @eval(import $(Symbol(p))) end, filter!(x -> isfile(joinpath(Sys.STDLIB, x, \"src\", \"$(x).jl\")), readdir(Sys.STDLIB)))") + .arg( + r#" + let + pkgs = filter!(x -> isfile(joinpath(Sys.STDLIB, x, "src", "$(x).jl")), readdir(Sys.STDLIB)) + total = length(pkgs) + foreach(enumerate(pkgs)) do (i, p) + print(stderr, "\r\x1b[KChecking standard library notarization [$i/$total]") + flush(stderr) + @eval(import $(Symbol(p))) + flush(stderr) + end + println(stderr) + end + "# + ) // .stdout(std::process::Stdio::null()) // .stderr(std::process::Stdio::null()) // .stdin(std::process::Stdio::null()) .status() .unwrap(); - if exit_status.success() { - eprintln!("done.") - } else { + if !exit_status.success() { eprintln!("failed with {}.", exit_status); } }