-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to register a registry in a registry #1791
Comments
Why not
? |
Even better! |
@fredrikekre , is this available? I though that only |
Yea you have to add with a URL. |
Ok, I'm sorry if I was not clear on the suggestion. |
Why not just register the packages in the General registry then? |
I also don't understand what pkg.julialang.org has anything to do with this? |
Why not just register packages in general: By the same reason people want to create a different registry. For instance, one could group project related packages in the registry, with different CI rules, get a new namespace for packages. what pkg.julialang.org has to do with this: the general registry has no link to other registries. AFAIK, the pkg.julialang.org searches for things that are registered in the general registry. If you link other registries to the general registry, you create a tree of registries that are discoverable from the general registry. For instance, |
Thanks for bringing this up @felipenoris. This topic is particularly relevant for JuliaFinance where package names can and should be simple and unambiguous within a financial context, but would be ambiguous in a General context. I'd be happy to archive the JuliaFinance registry, if we could have some kind of package namespacing on General, e.g. it would be awesome if we could register a package on General and do things like pkg> add @JuliaFinance/Currencies and, in code, simply do using Currencies I found this issue while searching for another old issue where namespacing was proposed. Registering registries was also proposed at the time. The idea has some appeal to me and makes things more decentralized. For example, if the JuliaFinance registry could registry itself on the General registry, then namespaces would simply point to that registry with no need for users to do |
I have opened an issue that is a feature request for namespaces: #1836 |
Btw, @felipenoris, after what I consider a fruitful discussion with Alec and Dilum culminating in #1836, I decided to archive the JuliaFinance registry. Please let me know if this causes you any problems. Assuming we make progress with #1836, once implemented, I can add the basic packages, e.g. Currencies, Positions, etc., to the JuliaFinance namespace on the General registry. This feels like the cleanest solution. For the time being, we'll probably need to continue just How does that sound? |
@EricForgy nice! No problem archiving the JuliaFinance registry. Regarding the NameSpaces feature in #1836, I'll post in the issue thread. |
This idea would improve the discoverability of packages (for instance, using the
pkg.julialang.org
search engine) that are in registries outside the general registry.The text was updated successfully, but these errors were encountered: