JuliaLang / Pkg.jl

Pkg - Package manager for the Julia programming language
https://pkgdocs.julialang.org
Other
616 stars 258 forks source link

Precompilation progress output ignores --color #3739

Closed maleadt closed 8 months ago

maleadt commented 8 months ago

Cased by:

https://github.com/JuliaLang/Pkg.jl/blob/03de920b383c783705f2f7910065c9ef13f2a456/src/API.jl#L1431

MWE:

❯ ./julia -q --color=no
julia> using Pkg
julia> string(Pkg.API.color_string("  ✓ ", :green), "Example")
"\e[32m  ✓ \e[39mExample"

This affects PkgEval, which runs under --color=no. Apart from the color, maybe the output shouldn't be as verbose for non-interactive sessions?