Use shards subset code from conda#939
Conversation
| UpdateModifier, | ||
| ) | ||
| from conda.common.path import PathType | ||
| from conda.gateways.shards import BuildRepodataSubset |
There was a problem hiding this comment.
implies requirement for conda >=26.5 although, since it's only in typing block it doesn't cause errors for older conda
|
Hi @dholth, I have one question about the implementation. Did you consider pulling what I call, "the ol' switcheroo"? By that I mean simply just swapping all of the modules verbatim to conda and then adding stubs to conda-libmamba-solver so that the imports continue to work for backwards compatibility purposes. I was expecting to see a lot more removals in this pull request than there currently are. If we're not going to remove the sharded repodata implementation in this pull request, I'd like to see us at least come up with a plan for removing it in the future. I'm not against the dependency injection strategy. I just wonder if we can't make this even simpler. Also, I think this is being blocked by this pull request, right? I wouldn't want to merge this while |
Since this implementation does not import new symbols from (We do run conda-libmamba-solver's tests against the related CONDA_REF so that it will call us passing its own shards implementation, so that we know that both pieces work together.) This isn't the main reason I've pursued this strategy but it is a side effect. I want to let We would certainly plan on removing |
|
That all makes sense. I think this is a fine approach then. Are we waiting for |
…xHelper; add package_records() iterator on shards
adbbc14 to
c3b9c11
Compare
Description
Now that conda is getting a port of the conda-libmamba-solver shards fetcher, use the one that originates from conda.
I'd like to pass this in to the solver as a parameter, instead of having conda-libmamba-solver choose exactly which shards function it calls.
Fix #908
Checklist - did you ...
newsdirectory (using the template) for the next release's release notes?