Skip to content

Commit 66ecc73

Browse files
committed
Add path to Project struct
In anticipation of fixing the equivalent of JuliaLang/Pkg.jl#3851 in LocalReigstry.jl.
1 parent 77e2a02 commit 66ecc73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/types.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ struct Project
3434
name::Union{Nothing, String}
3535
uuid::Union{Nothing, UUID}
3636
version::Union{Nothing, VersionNumber}
37+
path::Union{Nothing, String}
3738
deps::Dict{String, String}
3839
weakdeps::Dict{String, String}
3940
compat::Dict{String, String}
@@ -47,11 +48,12 @@ function Project(d::Dict)
4748
uuid !== nothing && (uuid = UUID(uuid))
4849
version = get(d, "version", nothing)
4950
version !== nothing && (version = VersionNumber(version))
51+
path = get(d, "path", nothing)
5052
deps = get(Dict, d, "deps")
5153
weakdeps = get(Dict, d, "weakdeps")
5254
compat = get(Dict, d, "compat")
5355
extras = get(Dict, d, "extras")
54-
Project(name, uuid, version, deps, weakdeps, compat, extras)
56+
Project(name, uuid, version, path, deps, weakdeps, compat, extras)
5557
end
5658

5759
"""

0 commit comments

Comments
 (0)