-
Notifications
You must be signed in to change notification settings - Fork 986
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
[feature] Allow "conan config install" to merge remotes #13821
Comments
Thanks for your suggestion @andrey-zherikov This is mostly a UI problem, the main current behavior is the correct one, because being able to remove remotes is more important than allowing to append/add remotes, as for many users removing remotes like conancenter in their production pipelines is critical. So that leave us with what would be an interface to allow this that wouldn't be bad, would be easy to implement and understand by users and not breaking behavior. |
I don't know how
|
This would be a nice feature to have. We have an increasingly large number of conan repositories, and providing an easy way for users to easily install their desired intersection of repositories (from multiple configuration repositories, used for different purposes) is becoming more difficult. I think an interface similar to:
would be good |
Hi all, We have considered this issue, even @AbrilRBS implemented something in #14659. We have reviewed it, and the problem we found is that there will be too many corner cases, that will inevitably clutter the ux and make something difficult to manage and understand:
Regarding of a merge strategy for other files, like
Taking everything into account, this seems the only sustainable way. Because it is not just a copy&paste, but in many cases it will be more elaborate, and order is critical. As creating a I am closing this as not planned, thanks very much all for the feedback! |
Unfortunate, but thanks for exploring the idea. We'll look at leveraging #14659 as a command extension for our own purposes. |
What is your suggestion?
Currently
conan config install
overrides all existing remotes. I'd like to be able to tell conan that the remotes should be merged instead.Our use case is the following:
conan config install <repo>
to setup basic configuration.conan config install
pointing to a team-specific configuration repo. Having only "merge" strategy for remotes forces teams to repeat shared remote in their configurations which contradicts with DRY principle. The reason to have multiple remotes is permissioning - some teams don't want their packages to be used outside of their teams or they want to restrict what packages can be shared (i.e. published to shared remote).Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: