Add conan ext:check-prevs command#242
Draft
AbrilRBS wants to merge 3 commits into
Draft
Conversation
AbrilRBS
commented
Mar 6, 2026
| # No need to ask the server (again if coming from the select endpoint) | ||
| # we already know there are multiple revisions for this package_id | ||
| for prev in prevs: | ||
| revisions.append(PkgReference(ref, package_id, prev)) |
Member
Author
There was a problem hiding this comment.
An optimization when the pkglist already contains more than 1 prev. The only downside is that the resulting pkglist won't contain possible extra prevs that might have been present in the remote
AbrilRBS
commented
Mar 6, 2026
| import textwrap | ||
|
|
||
| import pytest | ||
| from conan.test.utils.tools import TestClient |
Member
Author
There was a problem hiding this comment.
Uploaded as-is to test if we can use normal Conan test suite classes here
memsharded
reviewed
Mar 6, 2026
| listfile = make_abs_path(args.list) | ||
| multi_package_list = MultiPackagesList.load(listfile) | ||
| if remote.name not in multi_package_list.lists: | ||
| ConanOutput().warning(f"No packages for remote '{remote.name}' were found " |
Member
There was a problem hiding this comment.
This is not clear, maybe we want to check that no different package revisions exists in different remotes?
Maybe the input should be "remote-less", that is a PackageList, not a MultiPackageList with origin or something like that?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close conan-io/conan#19419
Close conan-io/conan#19716