diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-06-27 17:21:34 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-06-27 17:41:32 +0200 |
commit | 4a8bc4fd079b0ea3adf610d2b5ab6a8ceb10d4ce (patch) | |
tree | b5d13b4dd9eba0a78a3f3b02c4d28e050836e01d /lib/options.nix | |
parent | 49237015d6ee97e46b2c4aa48190e2f4c9114535 (diff) |
lib/options: Add hint for debugging infinite recursion in docs
Diffstat (limited to 'lib/options.nix')
-rw-r--r-- | lib/options.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/options.nix b/lib/options.nix index afae1769afdd4..3a1c0e540d7c0 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -242,6 +242,8 @@ rec { in if ss != {} then optionAttrSetToDocList' opt.loc ss else []; subOptionsVisible = docOption.visible && opt.visible or null != "shallow"; in + # To find infinite recursion in NixOS option docs: + # builtins.trace opt.loc [ docOption ] ++ optionals subOptionsVisible subOptions) (collect isOption options); |