From bf2f25e3d83f980b86fba315388372a1cae8f7d6 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Mon, 6 Jun 2022 20:55:05 +0200 Subject: [PATCH] respect print-missing variable in new-style build command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently nix-build prints the "printMissing" information by default, nix build doesn’t. People generally don‘t notice this because the standard log-format of nix build would not display the printMissing output long enough to perceive the information. This addresses https://github.com/NixOS/nix/issues/6561 --- src/libcmd/installables.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index 21db2b08b..39a5c1a9f 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -919,6 +919,9 @@ std::vector, BuiltPath>> Installable::bui break; case Realise::Outputs: { + if (settings.printMissing) + printMissing(store, pathsToBuild, lvlInfo); + for (auto & buildResult : store->buildPathsWithResults(pathsToBuild, bMode, evalStore)) { if (!buildResult.success()) buildResult.rethrow();