From d8cec03fcec9c7532db18334cf71a6935d94884d Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Sat, 1 Nov 2025 21:38:42 +0000 Subject: [PATCH] nix flake check: log success in verbose mode The rule of silence can be a little surprising. As a compromise to changing the default behavior, this adds printing a success message in verbose mode, where we don't really have a reason to be silent about our success. --- src/nix/flake.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nix/flake.cc b/src/nix/flake.cc index b826e943c..a6595dc91 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -811,6 +811,8 @@ struct CmdFlakeCheck : FlakeCommand if (hasErrors) throw Error("some errors were encountered during the evaluation"); + logger->log(lvlInfo, ANSI_GREEN "all checks passed!" ANSI_NORMAL); + if (!omittedSystems.empty()) { // TODO: empty system is not visible; render all as nix strings? warn(