You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a situation where I'd like to use the [sources] entry of Project.toml, to indicate that a package, X, should first be looked for at some path - and, if not present there, be looked for at some url. I had hoped this might be possible to do by something like
[sources]
X = {path="..", url="https://github.com/user/X.jl"}
pkgerror("Both `path` and `url` or `rev` are specified in `source` section")
end
I think it would be nice to be able to do this though: it would allow one to develop multiple interdependent private packages locally, preferring local versions specified in path if the exist, and then distribute them to collaborators, who might not have a local versions (then pulling from url).
Basically, I think it would be natural to let path take precedence if both path and url are present and a directory with a project exists at path.
The text was updated successfully, but these errors were encountered:
thchr
changed the title
Allow simultaneous path and url under [sources] with path-priority
Allow simultaneous path and url under [sources] with path-priority
Nov 18, 2024
I have a situation where I'd like to use the
[sources]
entry of Project.toml, to indicate that a package, X, should first be looked for at somepath
- and, if not present there, be looked for at someurl
. I had hoped this might be possible to do by something likebut that's not possible currently, by design, cf.
Pkg.jl/src/project.jl
Lines 104 to 106 in 69c6de0
I think it would be nice to be able to do this though: it would allow one to develop multiple interdependent private packages locally, preferring local versions specified in
path
if the exist, and then distribute them to collaborators, who might not have a local versions (then pulling fromurl
).Basically, I think it would be natural to let
path
take precedence if bothpath
andurl
are present and a directory with a project exists atpath
.The text was updated successfully, but these errors were encountered: