Skip to content

Commit d37c373

Browse files
committed
Julia 1.13+: Use safe_realpath(manifest_rel_path(...)) instead of project_rel_path(...)
1 parent 364afd5 commit d37c373

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/julia-1.13/TestEnv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Pkg: PackageSpec
33
using Pkg.Types: Context, ensure_resolved, is_project_uuid, write_env, is_stdlib
44
using Pkg.Types: Types, projectfile_path, manifestfile_path
55
using Pkg.Operations: manifest_info, manifest_resolve!, project_deps_resolve!
6-
using Pkg.Operations: project_rel_path, project_resolve!
6+
using Pkg.Operations: project_resolve!, manifest_rel_path, safe_realpath
77
using Pkg.Operations: sandbox, source_path, sandbox_preserve, abspath!
88
using Pkg.Operations: gen_target_project, isfixed
99

src/julia-1.13/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function get_test_dir(ctx::Context, pkgspec::Pkg.Types.PackageSpec)
7272
pkgspec.repo = entry.repo
7373
pkgspec.path = entry.path
7474
pkgspec.pinned = entry.pinned
75-
pkgspec.path = project_rel_path(ctx.env, source_path(ctx.env.project_file, pkgspec)::String)
75+
pkgspec.path = safe_realpath(manifest_rel_path(ctx.env, source_path(ctx.env.project_file, pkgspec)::String))
7676
end
7777
pkgfilepath = source_path(ctx.env.project_file, pkgspec)::String
7878
return joinpath(pkgfilepath, "test")

0 commit comments

Comments
 (0)