flake check: Recognize well known community attributes

This avoids warning fatigue, making `nix flake check` more effective.
This commit is contained in:
Robert Hensing 2023-01-16 20:16:45 +01:00
parent 2e41ae9f93
commit 4e7592b593

View file

@ -655,6 +655,19 @@ struct CmdFlakeCheck : FlakeCommand
} }
} }
else if (
name == "lib"
|| name == "darwinConfigurations"
|| name == "darwinModules"
|| name == "flakeModule"
|| name == "flakeModules"
|| name == "herculesCI"
|| name == "homeConfigurations"
|| name == "nixopsConfigurations"
)
// Known but unchecked community attribute
;
else else
warn("unknown flake output '%s'", name); warn("unknown flake output '%s'", name);