mirror of
https://github.com/NixOS/nix.git
synced 2025-12-14 04:51:05 +01:00
Merge pull request #13866 from obsidiansystems/more-derivation-builder-cleanup
Even more `DerivationBuilder` cleanup
This commit is contained in:
commit
a0ce514769
2 changed files with 9 additions and 12 deletions
|
|
@ -721,9 +721,11 @@ Goal::Co DerivationBuildingGoal::tryToBuild()
|
|||
try {
|
||||
builtOutputs = builder->unprepareBuild();
|
||||
} catch (BuilderFailureError & e) {
|
||||
builder.reset();
|
||||
outputLocks.unlock();
|
||||
co_return doneFailure(fixupBuilderFailureErrorMessage(std::move(e)));
|
||||
} catch (BuildError & e) {
|
||||
builder.reset();
|
||||
outputLocks.unlock();
|
||||
// Allow selecting a subset of enum values
|
||||
# pragma GCC diagnostic push
|
||||
|
|
@ -748,6 +750,7 @@ Goal::Co DerivationBuildingGoal::tryToBuild()
|
|||
co_return doneFailure(std::move(e));
|
||||
}
|
||||
{
|
||||
builder.reset();
|
||||
StorePathSet outputPaths;
|
||||
for (auto & [_, output] : builtOutputs) {
|
||||
// for sake of `bmRepair`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue