From b260cab4b6cb1d840950e79847a8c7194fc5a3a6 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Sat, 22 Jun 2024 11:56:26 -0400 Subject: [PATCH] block loading extensions when the package is not yet requested When loading from require_stdlib, the code is supposed to be inserted directly into the unrequested state only. This means that extensions should not automatically run, as these modules do not "interact" unless required to by a package that depended upon both, or if the user later explicitly imports them. Fixes #54884 --- base/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index 4f7249e693d8b..1c4eb2235b31d 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -1979,7 +1979,7 @@ end finally for modkey in newdeps insert_extension_triggers(modkey) - run_package_callbacks(modkey) + stalecheck && run_package_callbacks(modkey) end empty!(newdeps) end