aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-06-21 16:09:21 +0200
committerGitHub <noreply@github.com>2021-06-21 16:09:21 +0200
commit24e7353232f2d47d4692c8fd98a7c38225f45944 (patch)
tree0f0b35c2142379da4cf409145bea770738b47838 /src
parent55b4623d2150c212de07dd44e1aeff5227bb531c (diff)
parent3784c66a46aea2cc3e26b8cff94b3a1f477888f1 (diff)
Merge pull request #4928 from NixOS/ca/remove-existing-invalid-store-path
Remove a possible existing store path when building CA derivations
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 73e2350ea..279139020 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -2487,6 +2487,7 @@ void LocalDerivationGoal::registerOutputs()
assert(newInfo.ca);
} else {
auto destPath = worker.store.toRealPath(finalDestPath);
+ deletePath(destPath);
movePath(actualPath, destPath);
actualPath = destPath;
}