Skip to content

Commit 544bb89

Browse files
authored
dont respect sysimage versions when devving Pkg in artifact test (#3009)
1 parent 7762dd1 commit 544bb89

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

test/utils.jl

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,19 @@ function copy_test_package(tmpdir::String, name::String; use_pkg=true)
275275
end
276276

277277
function add_this_pkg(; platform=Base.BinaryPlatforms.HostPlatform())
278-
pkg_dir = dirname(@__DIR__)
279-
pkg_uuid = TOML.parsefile(joinpath(pkg_dir, "Project.toml"))["uuid"]
280-
spec = Pkg.PackageSpec(
281-
name="Pkg",
282-
uuid=UUID(pkg_uuid),
283-
path=pkg_dir,
284-
)
285-
Pkg.develop(spec; platform)
278+
try
279+
Pkg.respect_sysimage_versions(false)
280+
pkg_dir = dirname(@__DIR__)
281+
pkg_uuid = TOML.parsefile(joinpath(pkg_dir, "Project.toml"))["uuid"]
282+
spec = Pkg.PackageSpec(
283+
name="Pkg",
284+
uuid=UUID(pkg_uuid),
285+
path=pkg_dir,
286+
)
287+
Pkg.develop(spec; platform)
288+
finally
289+
Pkg.respect_sysimage_versions(true)
290+
end
286291
end
287292

288293
function list_tarball_files(tarball_path::AbstractString)

0 commit comments

Comments
 (0)