mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Allow derivations to update the build phase
So the progress bar can show [1/0/1 built, 0.0 MiB DL] building hello-2.10 (configuring): checking whether pread is declared without a macro... yes
This commit is contained in:
parent
c137c0a5eb
commit
0ac35b67b8
3 changed files with 24 additions and 7 deletions
|
@ -3325,6 +3325,11 @@ void DerivationGoal::flushLine()
|
|||
i->second.progress(json.value("done", 0), json.value("expected", 0), json.value("running", 0), json.value("failed", 0));
|
||||
}
|
||||
|
||||
else if (action == "setPhase") {
|
||||
std::string phase = json["phase"];
|
||||
act->result(resSetPhase, phase);
|
||||
}
|
||||
|
||||
} catch (std::exception & e) {
|
||||
printError("bad log message from builder: %s", e.what());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue