Skip to content

Commit 712b2e5

Browse files
precompilepkgs: fix is_direct_dep -> is_project_dep (#56643)
Fixes #56642 Missed rename from #55910
1 parent 1fb8df6 commit 712b2e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/precompilation.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,9 @@ function _precompilepkgs(pkgs::Vector{String},
425425
# inverse map of `parent_to_ext` above (ext → parent)
426426
ext_to_parent = Dict{Base.PkgId, Base.PkgId}()
427427

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

0 commit comments

Comments
 (0)