mirror of
https://github.com/NixOS/nix.git
synced 2025-12-15 21:41:04 +01:00
Log BuildResult
This commit is contained in:
parent
c515bc66f1
commit
762114b7c4
5 changed files with 75 additions and 21 deletions
|
|
@ -3,8 +3,11 @@
|
|||
#include "nar-info.hh"
|
||||
#include "finally.hh"
|
||||
#include "signals.hh"
|
||||
|
||||
#include <coroutine>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
namespace nix {
|
||||
|
||||
PathSubstitutionGoal::PathSubstitutionGoal(const StorePath & storePath, Worker & worker, RepairFlag repair, std::optional<ContentAddress> ca)
|
||||
|
|
@ -35,6 +38,14 @@ Goal::Done PathSubstitutionGoal::done(
|
|||
debug(*errorMsg);
|
||||
buildResult.errorMsg = *errorMsg;
|
||||
}
|
||||
|
||||
logger->result(
|
||||
getCurActivity(),
|
||||
resBuildResult,
|
||||
KeyedBuildResult(
|
||||
buildResult,
|
||||
DerivedPath::Opaque{storePath}).toJSON(worker.store));
|
||||
|
||||
return amDone(result);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue