mamba-org / rattler

Rust crates to work with the Conda ecosystem.
BSD 3-Clause "New" or "Revised" License
226 stars 42 forks source link

Matchspec::from_string gives RegexConstraintsNotSupported for X.Y.Z.*. #722

Closed AaronOpfer closed 1 month ago

AaronOpfer commented 1 month ago

Apparently, package dlib-19.0-np110py27_blas_openblas_200.tar.bz2 from conda-forge has a dependency openblas 0.2.18|0.2.18.*. (note the trailing dot) , but rattler_conda_types::MatchSpec rejects this: InvalidVersionSpec(InvalidConstraint(RegexConstraintsNotSupported)). Previously this wasn't an error in rattler_conda_types 0.24.0 , but now is in rattler_conda_types 0.25.1.

Discord conversation

The following release of dlib, 19.7, seems to have been corrected: it depends on openblas 0.2.20|0.2.20.*.

wolfv commented 1 month ago

I think you can use the "lenient" parsing mode to ignore these, right?

baszalmstra commented 1 month ago

Yes, but this specific case still fails to parse. My idea was to add this exception to the lenient parser.