diff options
author | Malte Brandy <malte.brandy@maralorn.de> | 2022-06-06 20:55:05 +0200 |
---|---|---|
committer | Malte Brandy <malte.brandy@maralorn.de> | 2022-06-06 21:15:31 +0200 |
commit | bf2f25e3d83f980b86fba315388372a1cae8f7d6 (patch) | |
tree | 38b1f0c45d899dcce2fdea0888928943e0565303 | |
parent | 1dd7253133c4dfd2e7a16ad6fe505442cef38a5b (diff) |
respect print-missing variable in new-style build command
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
-rw-r--r-- | src/libcmd/installables.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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<std::pair<std::shared_ptr<Installable>, 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(); |