JuliaLang / Pkg.jl

Pkg - Package manager for the Julia programming language
https://pkgdocs.julialang.org
Other
613 stars 251 forks source link

Having a dependency in an uninstalled registry #3765

Open aaruni96 opened 5 months ago

aaruni96 commented 5 months ago

[Feature Request]

I am trying to create a julia package which I could publish on the general registry (for discoverability and ease of installation), which depends on some packages in a custom registry. Is such a thing possible?

One solution I could imagine is, in the package's Project.toml, in the deps section, we could have the link mentioned (no link = the default registry), and the package resolver could simply add the registry to the depot whenever it encounters such a dependency ?

[deps]
Package = "UUID" @ https://link/to/registry.git