mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Fix #13293
We move the `assertPathValidity` to where we know what the wanted outputs are.
This commit is contained in:
parent
f42eaf2c8e
commit
5267718472
4 changed files with 10 additions and 14 deletions
|
@ -589,10 +589,10 @@ static void replaceValidPath(const Path & storePath, const Path & tmpPath)
|
|||
way first. We'd better not be interrupted here, because if
|
||||
we're repairing (say) Glibc, we end up with a broken system. */
|
||||
Path oldPath;
|
||||
|
||||
|
||||
if (pathExists(storePath)) {
|
||||
// why do we loop here?
|
||||
// although makeTempPath should be unique, we can't
|
||||
// although makeTempPath should be unique, we can't
|
||||
// guarantee that.
|
||||
do {
|
||||
oldPath = makeTempPath(storePath, ".old");
|
||||
|
@ -1871,7 +1871,7 @@ SingleDrvOutputs DerivationBuilderImpl::registerOutputs()
|
|||
also a source for non-determinism. */
|
||||
if (delayedException)
|
||||
std::rethrow_exception(delayedException);
|
||||
return miscMethods->assertPathValidity();
|
||||
return {};
|
||||
}
|
||||
|
||||
/* Apply output checks. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue