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

pixi 0.27.1 fails to parse project manifest with *xx* pattern version #1782

Closed
2 tasks done
RenaudLN opened this issue Aug 11, 2024 · 4 comments
Closed
2 tasks done
Labels
🐞 bug Something isn't working

Comments

@RenaudLN
Copy link

RenaudLN commented Aug 11, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

Add a dependency with special pattern like the following to pyproject.toml

[tool.pixi.dependencies]
jaxlib = "*cpu*"

Issue description

Pixi commands fail with the following error message:
image

if I rollback to 0.27.0 it works as expected

Expected behavior

Pixi should be able to parse these pattern versions, as it did in prior versions.

@RenaudLN RenaudLN added the 🐞 bug Something isn't working label Aug 11, 2024
@baszalmstra
Copy link
Contributor

I will have to investigate but I think in the previous version this would also not parse properly. We expect a version string not a matchspec. I think what you want to achieve is:

jaxlib = { build = "*cpu*" }

E.g. select any version that has cpu anywhere in the build string.

@baszalmstra
Copy link
Contributor

I made an attempt at improving the error message: #1786

@RenaudLN
Copy link
Author

RenaudLN commented Aug 11, 2024

It was definitely working with 0.27.0 but thanks, the 'build' fix works with 0.27.1!
image

And thanks for the error message update!

@baszalmstra
Copy link
Contributor

Closing this now that #1786 has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants