mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
derivation-goal: unlock output lock to avoid deadlock
guix discovered in their code base. Maybe we should do the same.
This commit is contained in:
parent
5230d3ecc4
commit
3d877ecae4
1 changed files with 1 additions and 0 deletions
|
@ -701,6 +701,7 @@ Goal::Co DerivationGoal::tryToBuild()
|
||||||
if (buildMode != bmCheck && allValid) {
|
if (buildMode != bmCheck && allValid) {
|
||||||
debug("skipping build of derivation '%s', someone beat us to it", worker.store.printStorePath(drvPath));
|
debug("skipping build of derivation '%s', someone beat us to it", worker.store.printStorePath(drvPath));
|
||||||
outputLocks.setDeletion(true);
|
outputLocks.setDeletion(true);
|
||||||
|
outputLocks.unlock();
|
||||||
co_return done(BuildResult::AlreadyValid, std::move(validOutputs));
|
co_return done(BuildResult::AlreadyValid, std::move(validOutputs));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue