File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1557,7 +1557,10 @@ end
1557
1557
1558
1558
function handle_package_input! (pkg:: PackageSpec )
1559
1559
if pkg. path != = nothing && pkg. url != = nothing
1560
- pkgerror (" `path` and `url` are conflicting specifications" )
1560
+ pkgerror (" PackageSpec fields `path` and `url` both set, resulting in conflicting specifications" )
1561
+ end
1562
+ if pkg. repo. source != = nothing || pkg. repo. rev != = nothing || pkg. repo. subdir != = nothing
1563
+ pkgerror (" The PackageSpec field `repo` is private and should not be set directly" )
1561
1564
end
1562
1565
pkg. repo = Types. GitRepo (rev = pkg. rev, source = pkg. url != = nothing ? pkg. url : pkg. path,
1563
1566
subdir = pkg. subdir)
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ mutable struct PackageSpec
92
92
uuid:: Union{Nothing,UUID}
93
93
version:: Union{Nothing,VersionTypes,String}
94
94
tree_hash:: Union{Nothing,SHA1}
95
- repo:: GitRepo
95
+ repo:: GitRepo # private
96
96
path:: Union{Nothing,String}
97
97
pinned:: Bool
98
98
# used for input only
You can’t perform that action at this time.
0 commit comments