-
Notifications
You must be signed in to change notification settings - Fork 990
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] Conan 2.x - Store conan create json output directly in conan package #17516
Comments
Hi @Jannis1994 Thanks for your question. Yes, at this moment that json can only be added to the package metadata after the package has been created. This is the reason we are working to add a new capability to conan, see: #17203 The feature is called like One of the key points for that feature is that every package should create the manifest/graph.json/sbom of itself, that is, including its subgraph of dependencies, and computing that subgraph explicitly is not available yet in Conan. But #17203 is adding that capability, so the idea is that creating and storing such file is doable, either directly in recipes, or in the new |
Hi @memsharded thanks for your quick answer. Old conaninfo.txt in Conan1.X:
New conaninfo.txt in Conan2.X:
Also the requires package version looks diferent. In our project we used the conaninfo.txt really often, especially the properties conan.package.* |
The The The |
Thanks for the clarification. Best regards, |
closed |
Thanks to you for the feedback! If you can, please follow #17203 too, it would be great to have your feedback when this is merged and release. Thanks again! |
Sure I will consider it, as soon as it is merged. |
Hello again, during migration to Conan2 we saw another problem. It is mainly about the former conan.requires attribute visible in Artifactory when selecting conaninfo.txt properties view. In the past some other scripts used it for further evaluation and it would be great if we could add this attribute atleast manually. Is it possible to extend the standard attributes (conan.package.channel, conan.package.license, conan.package.name etc,) with a custom attribute? I saw methods like package_info() but I dont get it visible in the properties overview and I dont want to add it as an option, as it is mainly a parameter like the version, we also have other custom properties in mind, that we would like to add. Was thinking of something like the following:
Could you maybe help us again? Thank you and best regards, |
What is your question?
Hello together,
in the past we used the conaninfo.txt file for checking dependencies. Now in Conan2 I saw it is better to use the json output of conan create as some details are not in conaninfo.txt anymore (Reference: #16763).
For instance I am missing:
[full_settings]
[full_options]
[recipe_hash]
I only get [options] and [requires]
So I used the following command:
My question would be now, how can I add this conan_info.json file to conan package after already creating it?
Is this only possible with the metadata option or is there something similiar to conaninfo.txt.
Using the conanfile.py package method and taking it from the recipe folder was also not possible without errors.
One idea I also thought of was executing the conan create steps manually but then it is not a one-liner anymore.
Best regards,
Jannis
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: