Skip to content

Commit 0340af1

Browse files
ranochavchuravy
authored andcommitted
improve inferrability of create_expr_cache
This fixes some invalidations when loading HDF5.jl
1 parent 4c0f8de commit 0340af1

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
@@ -1692,11 +1692,12 @@ function create_expr_cache(pkg::PkgId, input::String, output::String, concrete_d
16921692
stderr = internal_stderr, stdout = internal_stdout),
16931693
"w", stdout)
16941694
# write data over stdin to avoid the (unlikely) case of exceeding max command line size
1695-
write(io.in, """
1695+
io_in = io.in::PipeEndpoint
1696+
write(io_in, """
16961697
Base.include_package_for_output($(pkg_str(pkg)), $(repr(abspath(input))), $(repr(depot_path)), $(repr(dl_load_path)),
16971698
$(repr(load_path)), $deps, $(repr(source_path(nothing))))
16981699
""")
1699-
close(io.in)
1700+
close(io_in)
17001701
return io
17011702
end
17021703

0 commit comments

Comments
 (0)