Skip to content

Commit

Permalink
Merge pull request #12160 from Mic92/deadlock
Browse files Browse the repository at this point in the history
derivation-goal: unlock output lock to avoid deadlock
  • Loading branch information
edolstra authored Jan 9, 2025
2 parents 5230d3e + 3d877ec commit 9b9e416
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstore/build/derivation-goal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ Goal::Co DerivationGoal::tryToBuild()
if (buildMode != bmCheck && allValid) {
debug("skipping build of derivation '%s', someone beat us to it", worker.store.printStorePath(drvPath));
outputLocks.setDeletion(true);
outputLocks.unlock();
co_return done(BuildResult::AlreadyValid, std::move(validOutputs));
}

Expand Down

0 comments on commit 9b9e416

Please sign in to comment.