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

SPECS_SATISFIED_SKIP_SOLVE ignores spec #605

Open
2 tasks done
therc opened this issue Jan 23, 2025 · 0 comments
Open
2 tasks done

SPECS_SATISFIED_SKIP_SOLVE ignores spec #605

therc opened this issue Jan 23, 2025 · 0 comments
Labels
type::bug describes erroneous operation, use severity::* to classify the type

Comments

@therc
Copy link

therc commented Jan 23, 2025

Checklist

  • I added a descriptive title
  • 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.

Broken:

▶ conda install -S --solver libmamba 'conda>5000'
# All requested packages already installed.

Working as intended:

▶ 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']
[...]

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

All conda versions

Conda Config

All conda configs

Conda list

All conda package combos

Additional Context

No response

@therc therc added the type::bug describes erroneous operation, use severity::* to classify the type label Jan 23, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in 🧭 Planning Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug describes erroneous operation, use severity::* to classify the type
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant