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

Better error than 'ERROR: True' when conflicts #9633

Closed
wants to merge 1 commit into from

Conversation

lasote
Copy link
Contributor

@lasote lasote commented Sep 20, 2021

Changelog: Bugfix: Fixed bug whereby when a conflict of requirements happens, in some special situations, just a message ERROR: True was printed in the terminal, making it hard to guess what was going on.
Docs: omit

Closes #9633

@lasote lasote added this to the 1.41 milestone Sep 20, 2021
@@ -288,7 +288,8 @@ def _expand_require(self, require, node, graph, check_updates, update, remotes,
# Maybe it was an ALIAS, so we can check conflict again
conflict = self._conflicting_references(previous, require.ref, node.ref)
if conflict:
raise ConanException(conflict)
raise ConanException("Conflicting references: {} => {}".format(previous,
Copy link
Contributor Author

@lasote lasote Sep 20, 2021

Choose a reason for hiding this comment

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

node.ref is None so no Exception was raised inside self._conflicting_references (this is a bit weird design). Producing a raise ConanException(True)

Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

Overlap with #9624?

@lasote lasote closed this Sep 20, 2021
@lasote lasote mentioned this pull request Sep 20, 2021
2 tasks
@lasote
Copy link
Contributor Author

lasote commented Sep 20, 2021

Please, tag the issues/PRs if you are working on them.

@memsharded
Copy link
Member

Please, tag the issues/PRs if you are working on them.

Yes, sorry, my bad, I processed the PR first, forgot to assign the issue.

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.

None yet

2 participants