mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
Narrow scope on some local variables
This commit is contained in:
parent
cba27bae6d
commit
53946fe017
1 changed files with 7 additions and 5 deletions
|
@ -235,6 +235,7 @@ Goal::Co DerivationGoal::haveDerivation()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
{
|
||||||
/* Check what outputs paths are not already valid. */
|
/* Check what outputs paths are not already valid. */
|
||||||
auto [allValid, validOutputs] = checkPathValidity();
|
auto [allValid, validOutputs] = checkPathValidity();
|
||||||
|
|
||||||
|
@ -242,6 +243,7 @@ Goal::Co DerivationGoal::haveDerivation()
|
||||||
if (allValid && buildMode == bmNormal) {
|
if (allValid && buildMode == bmNormal) {
|
||||||
co_return done(BuildResult::AlreadyValid, std::move(validOutputs));
|
co_return done(BuildResult::AlreadyValid, std::move(validOutputs));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* We are first going to try to create the invalid output paths
|
/* We are first going to try to create the invalid output paths
|
||||||
through substitutes. If that doesn't work, we'll build
|
through substitutes. If that doesn't work, we'll build
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue