Code Monkey home page Code Monkey logo

Comments (3)

genotrance avatar genotrance commented on July 16, 2024

Do you mean pathSubs?

from nimph.

disruptek avatar disruptek commented on July 16, 2024

No, I mean the requires = statements in the .nimble. I modeled Nimph's off of those of Cargo. There are also some tests that might be helpful.

https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html

from nimph.

disruptek avatar disruptek commented on July 16, 2024

You can now play with these using the roll command, if it helps.

I'm thinking that given the state of things in Nimbleland, it might be easiest to just patch Nimble to parse ~ and ^ as >=, since that's the only useful operator there anyway. I imagine that Nimble is parsing 3 as 3.*.*, as today we discovered that some packages exist with 1-dot (eg. 3.1) versions, and @Solitude managed to find one with 3-dots (eg. 1.2.3.4).

A better alternative might be to introduce another statement to the .nimble. I've long wanted a way to blacklist version ranges; see #82, so maybe we add a more advanced requires statement that can co-exist with a Nimble-friendly requires, but which carries additional syntax capabilities (caret/tilde/wildcard). While we're in there, we add deficiencies for #82 and then we've enhanced capabilities without breaking any existing packages or package managers. Nimble can upgrade to support caret/tilde/wildcard via requires (or the new statements) whenever it likes.

We would almost certainly have to implement #24 as well, of course.

Thoughts?

from nimph.

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.