-
-
Notifications
You must be signed in to change notification settings - Fork 13
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Specify multiple upstreams #49
Comments
Your intuition is correct. The Ideally, the additional dependencies information could be stored in In reality, adding more than one registry can be a pragmatic solution - though the search ordering may introduce inconsistency when you have packages sharing the same name on more than one registry (a rare case in which I would ignore it until somebody raises the issue). To keep the project simple, no configuration file is supported at the moment. Adding support for environment variables could be a workaround like |
Thanks for the response. I understand the issue. Ultimately self-describing packages would be neat, but I guess we will have to wait and see for that. When it comes to specifying multiple upstreams, could we make it so the So in my case it might be |
Currently the resolved dependencies have a flag indicating whether they are resolved from the primary or upstream registry. To prepare for the case where the app might use n registries (#49) refactor to instead specify the package source.
Currently the resolved dependencies have a flag indicating whether they are resolved from the primary or upstream registry. To prepare for the case where the app might use n registries (#49) refactor to instead specify the package source.
This PR adds a service for resolving packuments by searching a list of source registries in order. For now this is only used in cmd-view (which has the nice effect of making the cmd function cli-logic only), but it could also be used in other places in the future, especially when it comes to #49.
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hey there. I've looked the documentation up and wanted to ask if the following is possible:
I want to install Package A from a private GitLab registry. I have setup the authentication, all is well. I specify the registry using the
--registry
option. The package is found.Package A has a few dependencies. First Package B. This package is a official Unity package and so is found in the upstream. No problem. But Package A also depends on Package C which lives on OpenUpm. This fails because, to my understanding, if you specify a registry option, the given registry will replace the OpenUPM registry. Is this correct?
Would it instead be possible to prepend the registry given by
--registry
to the list of registries to search? So first search the custom registry, then OpenUPM and finally Unity.I have a related question about if it would then be possible to store this custom registry in a config file somewhere so I don't have to add it every time.
I am open to attempting to introduce this change myself, I just wanted to ask first if this is already possible and I just missed it. Thanks :)
The text was updated successfully, but these errors were encountered: