aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-06-24 15:44:13 +0200
committerregnat <rg@regnat.ovh>2021-06-24 15:45:05 +0200
commit8b6fba2b63820ea63599d200f79740bb7f85de1e (patch)
treeab35e7598ea50d342f09d0203be0986c27b1fdc2 /src
parent08270af7fec1ca9954274a747e39c0d45bdb963e (diff)
Eventually delete the CA paths lock files
Mark the lockfiles as having to eventually be deleted so that they don’t stay laying around in the store at the end of the build Fix #4936
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build/local-derivation-goal.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index ba0aca29c..8320dd1c4 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -2481,6 +2481,7 @@ void LocalDerivationGoal::registerOutputs()
floating CA derivations and hash-mismatching fixed-output
derivations. */
PathLocks dynamicOutputLock;
+ dynamicOutputLock.setDeletion(true);
auto optFixedPath = output.path(worker.store, drv->name, outputName);
if (!optFixedPath ||
worker.store.printStorePath(*optFixedPath) != finalDestPath)