mamba-org / rattler

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

`InvalidBracket` for matchspec #717

Closed baszalmstra closed 1 month ago

baszalmstra commented 1 month ago

Parsing of invalid matchspec ray[default,data] >=2.9.0,<3.0.0 fails with

called `Result::unwrap()` on an `Err` value: InvalidBracket

Even though the matchspec is invalid, we should not fail with a panic!

See https://github.com/prefix-dev/pixi/issues/1469

wolfv commented 1 month ago

Maybe we can ignore invalid matchspecs

baszalmstra commented 1 month ago

Yeah for sure! Currently we unwrap in the parsing code though..