1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

Merge pull request #4928 from NixOS/ca/remove-existing-invalid-store-path

Remove a possible existing store path when building CA derivations
This commit is contained in:
Eelco Dolstra 2021-06-21 16:09:21 +02:00 committed by GitHub
commit 24e7353232
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View file

@ -2487,6 +2487,7 @@ void LocalDerivationGoal::registerOutputs()
assert(newInfo.ca);
} else {
auto destPath = worker.store.toRealPath(finalDestPath);
deletePath(destPath);
movePath(actualPath, destPath);
actualPath = destPath;
}