1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 11:36:03 +01:00

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.
This commit is contained in:
Vladimir Panteleev 2025-11-01 21:38:42 +00:00
parent 0ba1aa34dc
commit d8cec03fce
No known key found for this signature in database
GPG key ID: 5004F0FAD051576D

View file

@ -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(