Skip to content

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

Closed
lasote wants to merge 1 commit into
conan-io:developfrom
lasote:bug/9626
Closed

lasote wants to merge 1 commit into
conan-io:developfrom
lasote:bug/9626

Conversation

@lasote

@lasote lasote commented Sep 20, 2021

Copy link
Copy Markdown
Contributor

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
@lasote
lasote requested a review from memsharded September 20, 2021 10:42
conflict = self._conflicting_references(previous, require.ref, node.ref)
if conflict:
raise ConanException(conflict)
raise ConanException("Conflicting references: {} => {}".format(previous,

@lasote lasote Sep 20, 2021

Copy link
Copy Markdown
Contributor Author

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)

@memsharded memsharded left a comment

Copy link
Copy Markdown
Member

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

lasote commented Sep 20, 2021

Copy link
Copy Markdown
Contributor Author

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

@memsharded

Copy link
Copy Markdown
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.

2 participants