From 4e7592b59348315b3467159cb6b78b99e9a6fe84 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 16 Jan 2023 20:16:45 +0100 Subject: [PATCH] flake check: Recognize well known community attributes This avoids warning fatigue, making `nix flake check` more effective. --- src/nix/flake.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/nix/flake.cc b/src/nix/flake.cc index d16d88ef8..020c1b182 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -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 warn("unknown flake output '%s'", name);