Skip to content

Commit

Permalink
make sure Pkg.build process uses same paths as parent process (see Ju…
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Oct 20, 2015
1 parent df78cfa commit 5c49814
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base/pkg/entry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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_)
Expand Down

0 comments on commit 5c49814

Please sign in to comment.