Skip to content
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] Componets: Expose components to consumers #6717

Closed
danimtb opened this issue Mar 23, 2020 · 5 comments
Closed

[feature] Componets: Expose components to consumers #6717

danimtb opened this issue Mar 23, 2020 · 5 comments
Assignees
Milestone

Comments

@danimtb
Copy link
Member

danimtb commented Mar 23, 2020

Coming from #5090

On #6653 components were introduced at the definition level but cannot be used by a generator.

Implementing this feature should allow fine-grained components access to consumers via self.deps_cpp_info object.

Components should be accessible for each recipe like:

self.deps_cpp_info["dep1"].components

We should consider adding helper methods to get all the components in the right link order as requested in #6716

@jgsogo
Copy link
Contributor

jgsogo commented Mar 24, 2020

Alternative notation could be self.deps_cpp_info["dep1::cmp1"]

@memsharded
Copy link
Member

Already documented.

@iiknd
Copy link

iiknd commented Feb 11, 2021

Hi, I can see this one closed along with 6716.
The documentation says it's still experimental feature? Is the current components feature still subject to small/big changes?

@jgsogo
Copy link
Contributor

jgsogo commented Feb 16, 2021

Hi, @unzap. Although everything is subject to change in the next major release if it is really needed, one of the main efforts would be dedicated to keeping recipes compatible for Conan v1 and Conan v2. We are already using components exhaustively in conan-center-index, you can use it as a proxy to know which features are well tested and won't likely be modified, it would break all ConanCenter (which is something we really don't want to do).

@iiknd
Copy link

iiknd commented Feb 16, 2021

Thanks for the info, I will have a look in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants