diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-06-21 16:09:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 16:09:21 +0200 |
commit | 24e7353232f2d47d4692c8fd98a7c38225f45944 (patch) | |
tree | 0f0b35c2142379da4cf409145bea770738b47838 /src | |
parent | 55b4623d2150c212de07dd44e1aeff5227bb531c (diff) | |
parent | 3784c66a46aea2cc3e26b8cff94b3a1f477888f1 (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.cc | 1 |
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; } |