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
[question] Override requirements from command line #16157
Comments
Hi @realbogart Thanks for your question. The cli argument has been removed in Conan 2, it was terrible regarding UX. The problem with it is that it is very important to be consistent across all commands (conan lock, conan install, conan create, conan graph info, conan test), and this was a constant source of issues, debugging and support, and specially regarding reproducibility. The only way to mitigate this was to force the definition of |
Hi @memsharded, Thank you for the quick reply. Would it make sense to be able to pass We are trying to automate the testing of new package versions/revisions in different consumer projects in our CI system. For this we need a way to override the requirements set in these projects. Do you have any other suggestions on how to achieve this? Thank you for your help. |
Changing something as the On the other hand, some things from profiles like
Yes, this seems a different use case than the one that
The case you are exposing is more a traditional versioning mechanism, there are new things that we want to test, and we should be able to test them. This is approached with several mechanisms:
Please let me know if this clarifies a bit the approach. It is true that we need to complete the docs in this regard, this is a pending task, hopefully can be done soon. |
Thank you for that detailed answer, @memsharded! I will look closer at your suggestions to see if they can be applied to our setup. |
Good, thanks for the feedback. I think we can close this question as responded then, don't hesitate to create new tickets for any further question or issue that you might have. Thanks! |
What is your question?
Is it possible to override a requirement when running
conan install
?I noticed that you can set
replace_requires
andreplace_tool_requires
in the profile:https://docs.conan.io/2/reference/config_files/profiles.html
I also noticed that in Conan 1.x there was a command line argument called
--require-override
that seems to do just that. But what about Conan 2.x?Thanks!
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: