Skip to content

Commit 3d2e2bd

Browse files
add warning if cycle detected in extensions
1 parent 3ed1ee7 commit 3d2e2bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

base/loading.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,10 @@ function run_extension_callbacks(pkgid::PkgId)
13921392
extids = pop!(EXT_DORMITORY, pkgid, nothing)
13931393
extids === nothing && return
13941394
for extid in extids
1395+
if in(extid.id.name, precompilation_stack) && !isprecompiled(extid.id)
1396+
@warn "Dependency cycle detected in extension precompilation: $(join(precompilation_stack, " > ")) > $(extid.id.name)"
1397+
continue
1398+
end
13951399
if extid.ntriggers > 0
13961400
# indicate pkgid is loaded
13971401
extid.ntriggers -= 1

0 commit comments

Comments
 (0)