Skip to content

Commit

Permalink
fix relocatable upgrades test (#53889)
Browse files Browse the repository at this point in the history
Fixes #53885

Not the first time MacOS serving tempdir via a symlink has caused
obscure issues..
  • Loading branch information
IanButterworth committed Mar 29, 2024
1 parent b2e8eb2 commit 09b356f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,10 @@ end

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

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

0 comments on commit 09b356f

Please sign in to comment.