Code Monkey home page Code Monkey logo

Comments (3)

colemickens avatar colemickens commented on May 29, 2024

This pattern is throwing up red flags for me. Least of all, overriding a transitive dependency with a path doesn't seem to work.

I have:

{
 systems = { url = "path:./flake.systems.nix"; flake = false; };
 jj = { url = "github:martinvonz/jj"; inputs."flake-utils".inputs."systems".follows = "system"; };
}

and I can see from reading the lock file that the override is not working.

from flake-utils.

colemickens avatar colemickens commented on May 29, 2024

I guess I can override flake-utils, with it's system overridden, and then pass that to jj as an override, but ... this is going to get hairy fast. So this sorta works:

{
    systems = { url = "path:./flake.systems.nix"; flake = false; };
    flake-utils = { url = "github:numtide/flake-utils"; inputs."systems".follows = "systems"; };
    jj = { url = "github:martinvonz/jj"; inputs."flake-utils".follows = "flake-utils"; };
}

Now I have multiple (enough, really) flake-utils through my flake.lock, but now I also have this version that is slightly different. Now I have to decide if I override every potential flake input that consume flake-utils.

Also, a question -- should I have been able to override that dependency transitively?

from flake-utils.

zimbatm avatar zimbatm commented on May 29, 2024

I think your last example is the right way to do it, given the current design constraints of flakes.

The best is to flatten the inputs as much as possible so there is only one version of each dependency.

from flake-utils.

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.