1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-06 09:01:01 +01:00

Split DerivationGoal in two

This separation of concerns is generally good, but in particular sets up
for removing `addWantedOutputs` next.
This commit is contained in:
John Ericson 2025-04-21 18:05:03 -04:00
parent d1295448e0
commit 3b617e471b
10 changed files with 157 additions and 1589 deletions

View file

@ -155,7 +155,7 @@ Goal::Done Goal::amDone(ExitCode result, std::optional<Error> ex)
exitCode = result;
if (ex) {
if (!waiters.empty())
if (!preserveException && !waiters.empty())
logError(ex->info());
else
this->ex = std::move(*ex);