Support building flakes from a Git repo url with submodules#5434
Support building flakes from a Git repo url with submodules#5434edolstra merged 1 commit intoNixOS:masterfrom
Conversation
|
/cc @edolstra |
|
Seconding, hope this is merged as soon as possible |
|
Nice. One thing that I'm still wondering is how we would prevent flakes behaving differently depending on the version of nix they're run with. (Of course nothing I mentioned above is really related to this PR as it leaves the default untouched.) |
|
Off by default, but |
Well nix-2.4 has not been released yet, so one scenario could also be that before the 2.4 release git-submodules becomes the default with the option to opt-out. IMO disabling submodules is mostly a performance optimization which could be done in different ways. It does however severly impact the UX of the In #5284 it doesn't seem that edolstra has fundamentally changed his view on submodules ideally being turned on by default, so I'm really uncertain what will be the outcome of all this. |
|
... siphoning submodules stakeholders to #5497 |
This patch can support workaround for #5284:
nix build "git+file://$(pwd)?submodules=1".