Skip to content

Commit d8cec03

Browse files
committed
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.
1 parent 0ba1aa3 commit d8cec03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nix/flake.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,8 @@ struct CmdFlakeCheck : FlakeCommand
811811
if (hasErrors)
812812
throw Error("some errors were encountered during the evaluation");
813813

814+
logger->log(lvlInfo, ANSI_GREEN "all checks passed!" ANSI_NORMAL);
815+
814816
if (!omittedSystems.empty()) {
815817
// TODO: empty system is not visible; render all as nix strings?
816818
warn(

0 commit comments

Comments
 (0)