Skip to content

Commit

Permalink
precompilepkgs: package in boths deps and weakdeps are in fact only w…
Browse files Browse the repository at this point in the history
…eak (#53649)

Missed when porting from Pkg. Fixes
JuliaLang/Pkg.jl#3834.
  • Loading branch information
KristofferC authored Mar 8, 2024
1 parent 78351b5 commit e618369
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions base/precompilation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ struct ExplicitEnv
end

function ExplicitEnv(envpath::String=Base.active_project())
if !isfile(envpath)
error("expected a project file at $(repr(envpath))")
end
envpath = abspath(envpath)
project_d = parsed_toml(envpath)

Expand All @@ -51,6 +54,11 @@ function ExplicitEnv(envpath::String=Base.active_project())
end
end

# A package in both deps and weakdeps is in fact only a weakdep
for (name, _) in project_weakdeps
delete!(project_deps, name)
end

project_extensions = Dict{String, Vector{UUID}}()
# Collect all extensions of the project
for (name, triggers::Union{String, Vector{String}}) in get(Dict{String, Any}, project_d, "extensions")::Dict{String, Any}
Expand Down

0 comments on commit e618369

Please sign in to comment.