Skip to content

Commit

Permalink
fix issue with loading stdlibs stalecheck inconsistency
Browse files Browse the repository at this point in the history
This was an accidental late change in the PR, and I forgot why this
needed to be exactly written this way (and why this wasn't equivalent).

Followup to #54739 fixing #53983
  • Loading branch information
vtjnash committed Jun 22, 2024
1 parent 9d8ecaa commit 2cf14aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1935,9 +1935,10 @@ end
dep = staledeps[i]
dep isa Module && continue
modpath, modkey, modbuild_id, modcachepath, modstaledeps, modocachepath = dep::Tuple{String, PkgId, UInt128, String, Vector{Any}, Union{Nothing, String}}
dep = get(loaded_precompiles, modkey => modbuild_id, nothing)
if dep === nothing
if stalecheck
dep = maybe_root_module(modkey)
else
dep = get(loaded_precompiles, modkey => modbuild_id, nothing)
end
while true
if dep isa Module
Expand Down

0 comments on commit 2cf14aa

Please sign in to comment.