Skip to content

Commit aff32db

Browse files
tryfix
1 parent d98c92e commit aff32db

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/pkg.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ temp_pkg_dir() do project_path
271271
@testset "develop / freeing" begin
272272
Pkg.add(name=TEST_PKG.name, version=v"0.5.3")
273273
old_v = Pkg.dependencies()[TEST_PKG.uuid].version
274+
@test old_v == v"0.5.3"
274275
Pkg.rm(TEST_PKG.name)
275276
mktempdir() do devdir
276277
withenv("JULIA_PKG_DEVDIR" => devdir) do
@@ -299,6 +300,21 @@ temp_pkg_dir() do project_path
299300
touch("deps.jl")
300301
"""
301302
)
303+
exa_proj = joinpath(devdir, TEST_PKG.name, "Project.toml")
304+
proj_str = read(exa_proj, String)
305+
compat_onwards = split(proj_str, "[compat]")[2]
306+
open(exa_proj, "w") do io
307+
println(io, """
308+
name = "Example"
309+
uuid = "$(TEST_PKG.uuid)"
310+
version = "100.0.0"
311+
312+
[compat]
313+
$compat_onwards
314+
""")
315+
end
316+
Pkg.resolve()
317+
@test Pkg.dependencies()[TEST_PKG.uuid].version == v"100.0.0"
302318
Pkg.build(TEST_PKG.name)
303319
@test isfile(joinpath(devdir, TEST_PKG.name, "deps", "deps.jl"))
304320
Pkg.test(TEST_PKG.name)

0 commit comments

Comments
 (0)