@@ -1826,7 +1826,9 @@ end
18261826 let julia = ` $(Base. julia_cmd ()) --startup-file=no` ; mktempdir () do tmp
18271827 pkg_project = joinpath (Base. pkgdir (DistributedNext), " Project.toml" )
18281828 project = mkdir (joinpath (tmp, " project" ))
1829- depots = [mkdir (joinpath (tmp, " depot1" )), mkdir (joinpath (tmp, " depot2" ))]
1829+ # Keep the writable depot in the depots list so that external
1830+ # dependencies (i.e. ScopedValues.jl) can be loaded.
1831+ depots = [mkdir (joinpath (tmp, " depot1" )), mkdir (joinpath (tmp, " depot2" )), Base. DEPOT_PATH [1 ]]
18301832 load_path = [mkdir (joinpath (tmp, " load_path" )), " @stdlib" , " @" , pkg_project]
18311833 pathsep = Sys. iswindows () ? " ;" : " :"
18321834 env = Dict (
@@ -1935,15 +1937,15 @@ end
19351937 project = mktempdir()
19361938 env = Dict(
19371939 "JULIA_LOAD_PATH" => string(LOAD_PATH[1], $(repr (pathsep)) , "@stdlib", $(repr (pathsep)) , "$(escaped_pkg_project) "),
1938- "JULIA_DEPOT_PATH" => DEPOT_PATH[1 ],
1940+ "JULIA_DEPOT_PATH" => DEPOT_PATH[end ],
19391941 "TMPDIR" => ENV["TMPDIR"],
19401942 )
19411943 addprocs(1; env = env, exeflags = `--project=\$ (project)`)
19421944 env["JULIA_PROJECT"] = project
19431945 addprocs(1; env = env)
19441946 """ * funcscode * """
19451947 for w in workers()
1946- @test remotecall_fetch(depot_path, w) == [DEPOT_PATH[1 ]]
1948+ @test remotecall_fetch(depot_path, w) == [DEPOT_PATH[end ]]
19471949 @test remotecall_fetch(load_path, w) == [LOAD_PATH[1], "@stdlib", "$(escaped_pkg_project) "]
19481950 @test remotecall_fetch(active_project, w) == project
19491951 @test remotecall_fetch(Base.active_project, w) == joinpath(project, "Project.toml")
0 commit comments