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

fix with caching of aggregated components #14060

Merged

Conversation

memsharded
Copy link
Member

Changelog: Fix: Avoid caching issues when some intermediate package in the graph calls aggregated_components() over some dependency and using --deployer, generators still pointed to the Conan cache and not deployed copy.
Docs: Omit

Close #14022

@@ -490,22 +489,24 @@ def get_sorted_components(self):

def aggregated_components(self):
"""Aggregates all the components as global values, returning a new CppInfo"""
if self._aggregated is None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asking myself if there are more instances of caching in the code that can also be an issue

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a quick look, there is caching in some other places related to the computation of the graph, but nothing evident at first sight that would affect the generators

@czoido czoido merged commit 648dda2 into conan-io:release/2.0 Jun 12, 2023
@memsharded memsharded deleted the fix/caching_aggregated_components branch June 12, 2023 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] full_deploy generates paths to res relative to the cache instead of the deploy folder
3 participants