Giter Site home page Giter Site logo

Comments (2)

baszalmstra avatar baszalmstra commented on July 19, 2024

Thanks for this report, it triggered a deeper investigation. I fixed this in #738 .

So basically what happened is that actually ==2.7.*.* is an unsupported version because it basically says: I want exactly 2.7.*.*. Because of the exact equality rattler will deduce that 2.7.*.* must be a regular expression which is not supported by rattler. Thats why you get the RegexConstraintsNotSupported error.

However, through some historic conda magic that rattler also implements (when parsing in lenient mode), in some cases (if there is no build string) the == part of the version in matchspec is removed. That turns ==2.7.*.* into 2.7.*.* which is still not actually a valid version because that still looks like a regex, but rattler just interprets this as 2.7.* (in lenient mode again).

Anyway, with #738 both matchspec and the nameless variant implement this behavior. However, in strict mode the removal of a == is not performed anymore so in strict mode this specific matchspec will give a parser error.

from rattler.

AaronOpfer avatar AaronOpfer commented on July 19, 2024

Thanks! Looking forward to the next rattler_conda_types build to give it another go.

from rattler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.