diff --git a/base/pkg/entry.jl b/base/pkg/entry.jl index f3532523ce9203..556d7c96c0125e 100644 --- a/base/pkg/entry.jl +++ b/base/pkg/entry.jl @@ -519,6 +519,12 @@ function build!(pkgs::Vector, errs::Dict, seen::Set=Set()) errfile = tempname() close(open(errfile, "w")) # create empty file code = """ + empty!(Base.LOAD_PATH) + append!(Base.LOAD_PATH, $(repr(LOAD_PATH))) + empty!(Base.LOAD_CACHE_PATH) + append!(Base.LOAD_CACHE_PATH, $(repr(LOAD_CACHE_PATH))) + empty!(Base.DL_LOAD_PATH) + append!(Base.DL_LOAD_PATH, $(repr(DL_LOAD_PATH))) open("$(escape_string(errfile))", "a") do f for path_ in eachline(STDIN) path = chomp(path_)