You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched open reports and couldn't find a duplicate
What happened?
It's impossible to set a minimum version of a package with the new solver, because it will accept any version as satisfying the specs. This is easily tested with a version higher than currently exists. The classic solver doesn't suffer from the same issue, but of course it's slow.
▶ conda install -S --solver classic 'conda>5000'
Collecting package metadata (current_repodata.json):
[...]
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- conda[version='>5000']
[...]
Checklist
What happened?
It's impossible to set a minimum version of a package with the new solver, because it will accept any version as satisfying the specs. This is easily tested with a version higher than currently exists. The classic solver doesn't suffer from the same issue, but of course it's slow.
Broken:
Working as intended:
The issue is in the code at https://github.com/conda/conda-libmamba-solver/blob/main/conda_libmamba_solver/state.py#L546-L550
The solver only looks at the name and ignores the spec. Note how the comment says that the specs match, when they aren't even checked.
Conda Info
Conda Config
Conda list
Additional Context
No response
The text was updated successfully, but these errors were encountered: