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

[develop2] Fix bug in override=True trait propagation #10624

Merged
merged 5 commits into from
Feb 22, 2022

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Feb 21, 2022

This is necessary for the 2.0 docs and conan-io/examples2#2

@@ -212,6 +212,8 @@ def aggregate(self, other):
self.libs |= other.libs
self.run = self.run or other.run
self.visible |= other.visible
# The force trait is also defined from an override
self.force |= other.force or other.override
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the core fix of this PR, the rests are tests, output and removing dead code

@@ -58,4 +58,4 @@ def get(self, *args, **kwargs):
requester_class=BuggyRequester)
client.run("install --reference=pkg/0.1@lasote/stable", assert_error=True)
self.assertEqual(str(client.out).count("Waiting 0 seconds to retry..."), 2)
self.assertEqual(str(client.out).count("Error 200 downloading"), 3)
self.assertEqual(str(client.out).count("Error 200 downloading"), 4)
Copy link
Member Author

Choose a reason for hiding this comment

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

This increments by 1 because the detailed information about the Graph error includes the error downloading message.

@czoido czoido merged commit 5a551cd into conan-io:develop2 Feb 22, 2022
@memsharded memsharded deleted the fix/develop2_overrides branch February 22, 2022 16:36
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.

2 participants