1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

appendLogTailErrorMsg: Take a "smaller" arugment

We just need a `const Store &`, not a `Worker &`.
This commit is contained in:
John Ericson 2025-03-24 11:24:16 -04:00
parent 1988dc0c73
commit c121daf331
3 changed files with 5 additions and 5 deletions

View file

@ -873,7 +873,7 @@ void runPostBuildHook(
void appendLogTailErrorMsg(
Worker & worker,
const Store & store,
const StorePath & drvPath,
const std::list<std::string> & logTail,
std::string & msg)
@ -893,7 +893,7 @@ void appendLogTailErrorMsg(
// command will not put it at the start of the line unfortunately.
msg += fmt("For full logs, run:\n " ANSI_BOLD "%s %s" ANSI_NORMAL,
nixLogCommand,
worker.store.printStorePath(drvPath));
store.printStorePath(drvPath));
}
}
@ -940,7 +940,7 @@ Goal::Co DerivationGoal::hookDone()
Magenta(worker.store.printStorePath(drvPath)),
statusToString(status));
appendLogTailErrorMsg(worker, drvPath, logTail, msg);
appendLogTailErrorMsg(worker.store, drvPath, logTail, msg);
outputLocks.unlock();

View file

@ -64,7 +64,7 @@ void runPostBuildHook(
/** Used internally */
void appendLogTailErrorMsg(
Worker & worker,
const Store & store,
const StorePath & drvPath,
const std::list<std::string> & logTail,
std::string & msg);

View file

@ -621,7 +621,7 @@ Goal::Co LocalDerivationGoal::tryLocalBuild()
Magenta(worker.store.printStorePath(drvPath)),
statusToString(status));
appendLogTailErrorMsg(worker, drvPath, logTail, msg);
appendLogTailErrorMsg(worker.store, drvPath, logTail, msg);
if (diskFull)
msg += "\nnote: build failure may have been caused by lack of free disk space";