pixi icon indicating copy to clipboard operation
pixi copied to clipboard

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

Open RenaudLN opened this issue 1 year ago • 2 comments
trafficstars

Checks

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

  • [X] 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 avatar Aug 11 '24 01:08 RenaudLN

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 avatar Aug 11 '24 17:08 baszalmstra

I made an attempt at improving the error message: https://github.com/prefix-dev/pixi/pull/1786

baszalmstra avatar Aug 11 '24 19:08 baszalmstra

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!

RenaudLN avatar Aug 11 '24 21:08 RenaudLN

Closing this now that #1786 has been merged.

baszalmstra avatar Aug 20 '24 13:08 baszalmstra