conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.17k stars 974 forks source link

[question] Tool with requires #16413

Closed MichalCermakx closed 1 week ago

MichalCermakx commented 4 months ago

What is your question?

Hi,

I have a Conan tool (tool_requires), that is a composite wrapper for multiple smaller build tools. In other words, I am releasing a single version of this wrapper tool to simplify versioning on the consumer side. Users can point to a single tool instead of tracking multiple sub-tools.

I have a model, where this composite wrapper tool is consumed as tool_requires and has multiple requires defining subtools. This worked in Conan1, but Conan2 detects this and skips binaries for subtools. I still want to have the wrapper and sub-tools local (In the build context) of a direct consumer of a wrapper.

Is there a way to get a behavior I have with Conan1? I understand that I cannot mark sub-tools as tool_requires, because those will be used only for wrapper tool build.

Thank you.

Have you read the CONTRIBUTING guide?

memsharded commented 4 months ago

Hi @MichalCermakx

Thanks for your question.

If the transitive packages are being skipped is maybe because it is not enough specified. There could be some ways to specify this:

Besides that, Conan 2.4 released "vendor" packages that might be useful for aggregation/vendorization cases.

memsharded commented 1 week ago

Hi @MichalCermakx

Any further question or comment here? Thanks for your feedback.

MichalCermak123 commented 1 week ago

No further questions.

I checked https://blog.conan.io/2024/07/09/Introducing-vendoring-packages.html and it is exactly what I need, thank you very much. Michal

memsharded commented 1 week ago

Great, thanks for your feedback!