Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stackoverflow when attempting to generate option docs #34

Open
shelvacu opened this issue Nov 2, 2024 · 0 comments
Open

Stackoverflow when attempting to generate option docs #34

shelvacu opened this issue Nov 2, 2024 · 0 comments

Comments

@shelvacu
Copy link

shelvacu commented Nov 2, 2024

  let
    eval = lib.evalModules {
      modules = [{
        options.bla = lib.mkOption { type = dns.lib.types.zone; };
        config._module.check = false;
      }];
    };
  in
  {
    packages.${system}.default = (pkgs.nixosOptionsDoc { inherit (eval) options; }).optionsCommonMark;
  };

This is enough to cause a error: stack overflow (possible infinite recursion). I've made a full repro: https://gist.github.com/shelvacu/f63fec7ed447d21b6eee469183c4e7cb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant