Specify multiple upstreams #349
Replies: 3 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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
This has now been implemented in #397 |
Beta Was this translation helpful? Give feedback.
-
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 :)
Beta Was this translation helpful? Give feedback.
All reactions