1
1
Fork 0
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

(cherry picked from commit 452ec09fe0)
This commit is contained in:
Sergei Zimmerman 2025-10-05 16:55:41 +03:00 committed by github-actions[bot]
parent 66f6ad1292
commit d1cec3d3ed

View file

@ -272,9 +272,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(