From 2cf14aa2bd67dbafb22cacb2417bc1e1bccb0e3d Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Sat, 22 Jun 2024 11:49:55 -0400 Subject: [PATCH] fix issue with loading stdlibs stalecheck inconsistency 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 --- base/loading.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/loading.jl b/base/loading.jl index f10ed3907d17c..4f7249e693d8b 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -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