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 range resolver with different user/channel #5657

merged 3 commits into from Aug 26, 2019


Copy link

commented Aug 22, 2019

Changelog: Bugfix: Using the version ranges mechanism Conan wasn't able to resolve the correct reference if a library with the same name but different user/channel was found in an earlier remote.
Docs: omit

Closes #5649

@lasote lasote added this to the 1.18.2 milestone Aug 22, 2019

@lasote lasote requested review from jgsogo and memsharded Aug 22, 2019

jgsogo approved these changes Aug 22, 2019
Copy link

left a comment

You may consider filtering by user/channel before returning from _search_remotes function (for both if-branches) and remove that same filter from _resolve_remote one. But it is ok if you leave it as it is, without that little refactor.

search_result = self._remote_manager.search_recipes(remote, pattern, ignorecase=False)
if search_result:
return search_result,
if not remotes.selected or remote == remotes.selected:

This comment has been minimized.

Copy link

memsharded Aug 22, 2019


This might change behavior. If a remote is specified explictly, but the reference is not found there, it will iterate to other remotes?

This comment has been minimized.

Copy link

jgsogo Aug 23, 2019


Good catch!, No, it will enter on all of them (not remotes.selected), OR only in the selected one (remote == remotes.selected)

@lasote lasote merged commit c744a40 into conan-io:release/1.18.2 Aug 26, 2019

2 checks passed

continuous-integration/jenkins/pr-head This commit looks good
license/cla Contributor License Agreement is signed.

@lasote lasote deleted the lasote:fix/user_channel_ranges branch Aug 26, 2019

AKhranovskiy pushed a commit to AKhranovskiy/conan that referenced this pull request Sep 2, 2019
Fix range resolver with different user/channel (conan-io#5657)
* fix ranges with different user and channel

* Refactor

* Remove not needed lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.