Skip to content

Commit 638b0f6

Browse files
Sébastien LoiselSébastien Loisel
authored andcommitted
Use Project.toml [sources] with git URLs instead of CI Pkg.add hacks
Project.toml now specifies: [sources] LinearAlgebraMPI = {url = "...", rev = "main"} MultiGridBarrier = {url = "...", rev = "main"} This lets Pkg.instantiate() properly resolve dependencies from GitHub main branches, instead of fighting the package manager with Pkg.add overrides.
1 parent be11015 commit 638b0f6

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/CI.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ jobs:
5757
julia --project=. -e '
5858
using Pkg
5959
Pkg.add(name="OpenSSL_jll", version="3.0")
60-
Pkg.add(url="https://github.com/sloisel/LinearAlgebraMPI.jl.git", rev="main")
61-
Pkg.add(url="https://github.com/sloisel/MultiGridBarrier.jl.git", rev="main")
6260
Pkg.instantiate()
6361
Pkg.build("PyCall")
6462
'
@@ -132,8 +130,6 @@ jobs:
132130
using Pkg
133131
Pkg.develop(PackageSpec(path=pwd()))
134132
Pkg.add(name="OpenSSL_jll", version="3.0")
135-
Pkg.add(url="https://github.com/sloisel/LinearAlgebraMPI.jl.git", rev="main")
136-
Pkg.add(url="https://github.com/sloisel/MultiGridBarrier.jl.git", rev="main")
137133
Pkg.instantiate()
138134
Pkg.build("PyCall")
139135
'

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1414
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1515

1616
[sources]
17-
LinearAlgebraMPI = {path = "/Users/sebastienloisel/Dropbox/2023/Spectral Barrier Method/julia/LinearAlgebraMPI.jl"}
18-
MultiGridBarrier = {path = "/Users/sebastienloisel/Dropbox/2023/Spectral Barrier Method/julia/MultiGridBarrier.jl"}
17+
LinearAlgebraMPI = {url = "https://github.com/sloisel/LinearAlgebraMPI.jl.git", rev = "main"}
18+
MultiGridBarrier = {url = "https://github.com/sloisel/MultiGridBarrier.jl.git", rev = "main"}
1919

2020
[compat]
2121
BenchmarkTools = "1.6"

0 commit comments

Comments
 (0)