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

Package dependency solver: Invalid handling of caret constraint #4697

Open
theduke opened this issue May 14, 2024 — with Linear · 0 comments
Open

Package dependency solver: Invalid handling of caret constraint #4697

theduke opened this issue May 14, 2024 — with Linear · 0 comments
Labels
bug Something isn't working dependency-solver

Comments

Copy link
Contributor

theduke commented May 14, 2024

The dependency solver does not handle ^ constraints correctly.

Example:


[dependencies]
"wasmer/python" = "^3.12.6"

The latest matching version currently in the registry is 3.13.0, but the CLI picks 3.12.9 instead.

`^3.12.6` is equivalent to >=3.12.6, <4 , so this version selection is incorrect.

Edge does this matching correctly, leading to inconsistencies between the CLI and Edge.

@theduke theduke added bug Something isn't working dependency-solver labels May 14, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependency-solver
Projects
None yet
Development

No branches or pull requests

1 participant