-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
Description
Describe the bug
If a flake declared with self.inputs.submodules = true is used as an input in another flake with a github:... URL, then the second flake breaks because submodules are not supported by the github fetcher.
Steps To Reproduce
- Create a simple
flake.nix:
{
inputs = {
playit-nixos-module = {
url = "github:pedorich-n/playit-nixos-module?ref=49676e7462a568827315eeded37fc651dd0b9bf9";
flake = true;
};
};
outputs = _: { };
}- run
nix flake lock - run
nix flake lockagain - Witness
error: input attribute 'submodules' not supported by scheme 'github'
Expected behavior
github fetcher should support submodules
Metadata
nix (Nix) 2.28.4
Additional context
As a workaround, it's possible to switch to git+https://github.com/... scheme, which supports submodules.
(Probably) Introduced by #12421
Also, the issue was discussed in tidalcycles/Tidal#1137 (comment)
Checklist
- checked latest Nix manual (source)
- checked open bug issues and pull requests for possible duplicates
Add 👍 to issues you find important.
kasimeka, timower, Paolumaya, 0Supa, notpeelz and 4 more