about summary refs log tree commit diff
path: root/third_party/nix/src/nix/installables.cc
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-08-21T01·07+0100
committertazjin <mail@tazj.in>2020-08-21T01·35+0000
commit06681c35a9191656b8f3a9a343e21457a71a947d (patch)
tree68f05e9e535f7951c196c930c317d0132287247e /third_party/nix/src/nix/installables.cc
parent262af89f81eda6ce26845563141481d447e04a06 (diff)
refactor(tvix): Replace several DiscardLogsSink() with std::cerr r/1698
Introduces the actual log sink in several places where we actually
want the build logs to thread through correctly.

This should cover *most* build paths.

Change-Id: I735dff8a79f7e35a5874eb89b4abb980f9703dc2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1827
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to '')
-rw-r--r--third_party/nix/src/nix/installables.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/nix/installables.cc b/third_party/nix/src/nix/installables.cc
index b5980ce476..7aa26b0dee 100644
--- a/third_party/nix/src/nix/installables.cc
+++ b/third_party/nix/src/nix/installables.cc
@@ -1,3 +1,4 @@
+#include <iostream>
 #include <regex>
 #include <utility>
 
@@ -274,8 +275,7 @@ Buildables build(
   if (mode == DryRun) {
     printMissing(store, pathsToBuild);
   } else if (mode == Build) {
-    auto discard_logs = DiscardLogsSink();
-    util::OkOrThrow(store->buildPaths(discard_logs, pathsToBuild));
+    util::OkOrThrow(store->buildPaths(std::cerr, pathsToBuild));
   }
 
   return buildables;