5
5
#include " nix/util/processes.hh"
6
6
#include " nix/util/config-global.hh"
7
7
#include " nix/store/build/worker.hh"
8
- #include " nix/store/builtins.hh"
9
- #include " nix/store/builtins/buildenv.hh"
10
- #include " nix/util/references.hh"
11
- #include " nix/util/finally.hh"
12
8
#include " nix/util/util.hh"
13
- #include " nix/util/archive.hh"
14
9
#include " nix/util/compression.hh"
15
10
#include " nix/store/common-protocol.hh"
16
11
#include " nix/store/common-protocol-impl.hh"
17
- #include " nix/util/topo-sort.hh"
18
- #include " nix/util/callback.hh"
19
12
#include " nix/store/local-store.hh" // TODO remove, along with remaining downcasts
20
13
21
- #include < regex>
22
- #include < queue>
23
-
24
14
#include < fstream>
25
15
#include < sys/types.h>
26
16
#include < fcntl.h>
27
17
#include < unistd.h>
28
18
29
- #ifndef _WIN32 // TODO abstract over proc exit status
30
- # include < sys/wait.h>
31
- #endif
32
-
33
19
#include < nlohmann/json.hpp>
34
20
35
21
#include " nix/util/strings.hh"
@@ -879,11 +865,7 @@ void runPostBuildHook(
879
865
}
880
866
881
867
882
- void appendLogTailErrorMsg (
883
- const Store & store,
884
- const StorePath & drvPath,
885
- const std::list<std::string> & logTail,
886
- std::string & msg)
868
+ void DerivationGoal::appendLogTailErrorMsg (std::string & msg)
887
869
{
888
870
if (!logger->isVerbose () && !logTail.empty ()) {
889
871
msg += fmt (" ;\n last %d log lines:\n " , logTail.size ());
@@ -900,7 +882,7 @@ void appendLogTailErrorMsg(
900
882
// command will not put it at the start of the line unfortunately.
901
883
msg += fmt (" For full logs, run:\n " ANSI_BOLD " %s %s" ANSI_NORMAL,
902
884
nixLogCommand,
903
- store.printStorePath (drvPath));
885
+ worker. store .printStorePath (drvPath));
904
886
}
905
887
}
906
888
@@ -947,7 +929,7 @@ Goal::Co DerivationGoal::hookDone()
947
929
Magenta (worker.store .printStorePath (drvPath)),
948
930
statusToString (status));
949
931
950
- appendLogTailErrorMsg (worker. store , drvPath, logTail, msg);
932
+ appendLogTailErrorMsg (msg);
951
933
952
934
outputLocks.unlock ();
953
935
0 commit comments