Merge pull request #4942 from NixOS/ca/remove-lock-files

Eventually delete the CA paths lock files
This commit is contained in:
Eelco Dolstra 2021-06-28 16:12:19 +02:00 committed by GitHub
commit 6182ae6898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)