• entwine@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    19 hours ago

    The solution to the problem is to install git into a clean system so you can observe what changes it makes.

    How would you do this with Nix?

      • entwine@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        14 hours ago

        I guess you misunderstood my question, because that won’t work. nix-shell -p git doesn’t provide an isolated operating system. They only isolate programs and libraries. If your native git installation modified something in your home folder, those changes will still be visible inside a nix shell.

        I’m not sure what you’re trying to accomplish in those other commands, as they just seem to print out git’s dependencies?

        Also, I see you’re actively editing your comment as I’m typing so sorry if you actually post the answer after I hit Reply.