Skip to content

Commit 09b356f

Browse files
fix relocatable upgrades test (#53889)
Fixes #53885 Not the first time MacOS serving tempdir via a symlink has caused obscure issues..
1 parent b2e8eb2 commit 09b356f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/loading.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,10 @@ end
13371337

13381338
@testset "relocatable upgrades #51989" begin
13391339
mktempdir() do depot
1340-
project_path = joinpath(depot, "project")
1340+
# realpath is needed because Pkg is used for one of the precompile paths below, and Pkg calls realpath on the
1341+
# project path so the cache file slug will be different if the tempdir is given as a symlink
1342+
# (which it often is on MacOS) which would break the test.
1343+
project_path = joinpath(realpath(depot), "project")
13411344
mkpath(project_path)
13421345

13431346
# Create fake `Foo.jl` package with two files:

0 commit comments

Comments
 (0)