Skip to content

Commit d0fb2c9

Browse files
committed
show an increasing count for notarizing stdlibs instead of just dots
fixes #1076
1 parent 1920c73 commit d0fb2c9

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

src/operations.rs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -410,23 +410,32 @@ pub fn install_version(
410410
)
411411
})?;
412412

413-
eprint!("Checking standard library notarization");
414-
let _ = std::io::stdout().flush();
415-
416413
let exit_status = std::process::Command::new(julia_path)
417414
.env("JULIA_LOAD_PATH", "@stdlib")
418415
.arg("--startup-file=no")
419416
.arg("-e")
420-
.arg("foreach(p -> begin print(stderr, '.'); @eval(import $(Symbol(p))) end, filter!(x -> isfile(joinpath(Sys.STDLIB, x, \"src\", \"$(x).jl\")), readdir(Sys.STDLIB)))")
417+
.arg(
418+
r#"
419+
let
420+
pkgs = filter!(x -> isfile(joinpath(Sys.STDLIB, x, "src", "$(x).jl")), readdir(Sys.STDLIB))
421+
total = length(pkgs)
422+
foreach(enumerate(pkgs)) do (i, p)
423+
print(stderr, "\r\x1b[KChecking standard library notarization [$i/$total]")
424+
flush(stderr)
425+
@eval(import $(Symbol(p)))
426+
flush(stderr)
427+
end
428+
println(stderr)
429+
end
430+
"#
431+
)
421432
// .stdout(std::process::Stdio::null())
422433
// .stderr(std::process::Stdio::null())
423434
// .stdin(std::process::Stdio::null())
424435
.status()
425436
.unwrap();
426437

427-
if exit_status.success() {
428-
eprintln!("done.")
429-
} else {
438+
if !exit_status.success() {
430439
eprintln!("failed with {}.", exit_status);
431440
}
432441
}

0 commit comments

Comments
 (0)