Skip to content

Commit 2cf14aa

Browse files
committed
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
1 parent 9d8ecaa commit 2cf14aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

base/loading.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,9 +1935,10 @@ end
19351935
dep = staledeps[i]
19361936
dep isa Module && continue
19371937
modpath, modkey, modbuild_id, modcachepath, modstaledeps, modocachepath = dep::Tuple{String, PkgId, UInt128, String, Vector{Any}, Union{Nothing, String}}
1938-
dep = get(loaded_precompiles, modkey => modbuild_id, nothing)
1939-
if dep === nothing
1938+
if stalecheck
19401939
dep = maybe_root_module(modkey)
1940+
else
1941+
dep = get(loaded_precompiles, modkey => modbuild_id, nothing)
19411942
end
19421943
while true
19431944
if dep isa Module

0 commit comments

Comments
 (0)