Skip to content

A flake with inputs.self.submodules = true breaks when used as an input from GitHub #13571

@pedorich-n

Description

@pedorich-n

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

  1. Create a simple flake.nix:
{
  inputs = {
    playit-nixos-module = {
      url = "github:pedorich-n/playit-nixos-module?ref=49676e7462a568827315eeded37fc651dd0b9bf9";
      flake = true;
    };
  };

  outputs = _: { };
}
  1. run nix flake lock
  2. run nix flake lock again
  3. 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


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions