Skip to content

Commit

Permalink
block loading extensions when the package is not yet requested
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vtjnash committed Jun 22, 2024
1 parent 2cf14aa commit b260cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b260cab

Please sign in to comment.