Skip to content

Commit

Permalink
[release-1.11] Backport: precompilepkgs report direct dep ext errors (#…
Browse files Browse the repository at this point in the history
…55955)

(cherry picked from commit ee651f4)

Backport of #54741
  • Loading branch information
IanButterworth authored Oct 1, 2024
1 parent 4c87cb4 commit 106e797
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions base/precompilation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,6 @@ function precompilepkgs(pkgs::Vector{String}=String[];
hascolor = get(io, :color, false)::Bool
color_string(cstr::String, col::Union{Int64, Symbol}) = _color_string(cstr, col, hascolor)

direct_deps = [
Base.PkgId(uuid, name)
for (name, uuid) in env.project_deps if !Base.in_sysimage(Base.PkgId(uuid, name))
]
stale_cache = Dict{StaleCacheKey, Bool}()
exts = Dict{Base.PkgId, String}() # ext -> parent
# make a flat map of each dep and its direct deps
Expand Down Expand Up @@ -425,6 +421,14 @@ function precompilepkgs(pkgs::Vector{String}=String[];
end
end

direct_deps = [
Base.PkgId(uuid, name)
for (name, uuid) in env.project_deps if !Base.in_sysimage(Base.PkgId(uuid, name))
]

# consider exts of direct deps to be direct deps so that errors are reported
append!(direct_deps, keys(filter(d->last(d) in keys(env.project_deps), exts)))

# An extension effectively depends on another extension if it has all the the
# dependencies of that other extension
function expand_dependencies(depsmap)
Expand Down

0 comments on commit 106e797

Please sign in to comment.