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
new update_conandata() helper #10586
Conversation
Hi @memsharded, This looks to be a very useful function and one we were literally about to look at implementing ourselves. However can I ask you to consider an additional usage scenario: We would like to capture to some data in the Does it sound reasonable to add support for this use case? |
(BTW, this new helper is being added as it will be necessary to migrate some features to 2.0).
Yes, it could be possible, but I have had a look and seems it could be a bit dirty now in the 1.X, we can try to have a second look, when we revisit the hooks for Conan 2.0, we want to understand better their usage. Can you please describe a bit more what information you are adding to conandata.yml by the hook? Why in a hook and not directly in the recipe. As a rule of thumb:
|
We currently only use hooks when running in our CI environment. They are stored in a dedicated git config repo and installed via Conan Package Tool's In the case at hand, we are now wanting to store some CI-related information in the Hope that clarifies things a bit. |
Thanks very much @santhonisz for the details. As this is closed, I am going to create an issue for future consideration then, now it would be dirty to make the |
Changelog: Feature: New
from conan.tools.files import update_conandata()
helper to add data toconandata.yml
in theexport()
method.Docs: conan-io/docs#2422