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

libstore: Fix use-after-move in DerivationGoal::repairClosure

This commit is contained in:
Sergei Zimmerman 2025-10-05 16:55:41 +03:00
parent 7ba3ef21a6
commit 452ec09fe0
No known key found for this signature in database

View file

@ -378,9 +378,10 @@ Goal::Co DerivationGoal::repairClosure()
bmRepair));
}
bool haveWaitees = !waitees.empty();
co_await await(std::move(waitees));
if (!waitees.empty()) {
if (haveWaitees) {
trace("closure repaired");
if (nrFailed > 0)
throw Error(