mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
libstore: Fix use-after-move in DerivationGoal::repairClosure
This commit is contained in:
parent
7ba3ef21a6
commit
452ec09fe0
1 changed files with 2 additions and 1 deletions
|
|
@ -378,9 +378,10 @@ Goal::Co DerivationGoal::repairClosure()
|
||||||
bmRepair));
|
bmRepair));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool haveWaitees = !waitees.empty();
|
||||||
co_await await(std::move(waitees));
|
co_await await(std::move(waitees));
|
||||||
|
|
||||||
if (!waitees.empty()) {
|
if (haveWaitees) {
|
||||||
trace("closure repaired");
|
trace("closure repaired");
|
||||||
if (nrFailed > 0)
|
if (nrFailed > 0)
|
||||||
throw Error(
|
throw Error(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue