Skip to content

Commit

Permalink
precompilepkgs: fix is_direct_dep -> is_project_dep (#56643)
Browse files Browse the repository at this point in the history
Fixes #56642 

Missed rename from #55910
  • Loading branch information
IanButterworth authored Nov 21, 2024
1 parent 1fb8df6 commit 712b2e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/precompilation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,9 @@ function _precompilepkgs(pkgs::Vector{String},
# inverse map of `parent_to_ext` above (ext → parent)
ext_to_parent = Dict{Base.PkgId, Base.PkgId}()

function describe_pkg(pkg::PkgId, is_direct_dep::Bool, flags::Cmd, cacheflags::Base.CacheFlags)
function describe_pkg(pkg::PkgId, is_project_dep::Bool, flags::Cmd, cacheflags::Base.CacheFlags)
name = haskey(ext_to_parent, pkg) ? string(ext_to_parent[pkg].name, "", pkg.name) : pkg.name
name = is_direct_dep ? name : color_string(name, :light_black)
name = is_project_dep ? name : color_string(name, :light_black)
if nconfigs > 1 && !isempty(flags)
config_str = join(flags, " ")
name *= color_string(" `$config_str`", :light_black)
Expand Down Expand Up @@ -911,7 +911,7 @@ function _precompilepkgs(pkgs::Vector{String},
if err isa ErrorException || (err isa ArgumentError && startswith(err.msg, "Invalid header in cache file"))
errmsg = String(take!(get(IOBuffer, std_outputs, pkg_config)))
delete!(std_outputs, pkg_config) # so it's not shown as warnings, given error report
failed_deps[pkg_config] = (strict || is_direct_dep) ? string(sprint(showerror, err), "\n", strip(errmsg)) : ""
failed_deps[pkg_config] = (strict || is_project_dep) ? string(sprint(showerror, err), "\n", strip(errmsg)) : ""
!fancyprint && lock(print_lock) do
println(io, " "^9, color_string("", Base.error_color()), name)
end
Expand Down

0 comments on commit 712b2e5

Please sign in to comment.