Skip to content

Commit 323b579

Browse files
committed
Use more compatible Pkg.add signature
1 parent c521f70 commit 323b579

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/activate_do.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@testset "activate do f [extras]" begin
33
mktempdir() do p
44
Pkg.activate(p)
5-
Pkg.add(name="ChainRulesCore", version="1.0.2")
5+
Pkg.add(PackageSpec(name="ChainRulesCore", version="1.0.2"))
66

77
orig_project = Base.active_project()
88

@@ -23,7 +23,7 @@
2323
@testset "activate do test/Project" begin
2424
mktempdir() do p
2525
Pkg.activate(p)
26-
Pkg.add(name="MCMCDiagnosticTools", version="0.1.0")
26+
Pkg.add(PackageSpec(name="MCMCDiagnosticTools", version="0.1.0"))
2727

2828
orig_project = Base.active_project()
2929

test/activate_set.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@testset "activate [extras]" begin
33
mktempdir() do p
44
Pkg.activate(p)
5-
Pkg.add(name="ChainRulesCore", version="1.0.2")
5+
Pkg.add(PackageSpec(name="ChainRulesCore", version="1.0.2"))
66

77
orig_project_toml_path = Base.active_project()
88
push!(LOAD_PATH, mktempdir()) # put something weird in LOAD_PATH for testing
@@ -29,7 +29,7 @@
2929
@testset "activate test/Project" begin
3030
mktempdir() do p
3131
Pkg.activate(p)
32-
Pkg.add(name="YAXArrays", version="0.1.3")
32+
Pkg.add(PackageSpec(name="YAXArrays", version="0.1.3"))
3333

3434
orig_project_toml_path = Base.active_project()
3535
push!(LOAD_PATH, mktempdir()) # put something weird in LOAD_PATH for testing

0 commit comments

Comments
 (0)