Skip to content

Commit 1302376

Browse files
committed
squash! check if cachefile dependencies can be fulfilled
1 parent 8ff037a commit 1302376

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

base/loading.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,12 @@ function stale_cachefile(modpath::String, cachefile::String)
747747

748748
# Check if transitive dependencies can be fullfilled
749749
for mod in keys(required_modules)
750-
isdefined(Main, mod) && continue
750+
if mod == :Main || mod == :Core || mod == :Base
751+
continue
752+
# Module is already loaded
753+
elseif isdefined(Main, mod)
754+
continue
755+
end
751756
name = string(mod)
752757
path = find_in_node_path(name, nothing, 1)
753758
if path === nothing

0 commit comments

Comments
 (0)