mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
DerivationBuildingGoal::outputLocks make local variable
This commit is contained in:
parent
a63ac8d98b
commit
3b9c510ab1
2 changed files with 5 additions and 7 deletions
|
|
@ -475,6 +475,11 @@ Goal::Co DerivationBuildingGoal::tryToBuild()
|
|||
*/
|
||||
std::unique_ptr<Activity> actLock;
|
||||
|
||||
/**
|
||||
* Locks on (fixed) output paths.
|
||||
*/
|
||||
PathLocks outputLocks;
|
||||
|
||||
bool useHook;
|
||||
|
||||
while (true) {
|
||||
|
|
@ -1301,7 +1306,6 @@ SingleDrvOutputs DerivationBuildingGoal::assertPathValidity()
|
|||
|
||||
Goal::Done DerivationBuildingGoal::doneSuccess(BuildResult::Status status, SingleDrvOutputs builtOutputs)
|
||||
{
|
||||
outputLocks.unlock();
|
||||
buildResult.status = status;
|
||||
|
||||
assert(buildResult.success());
|
||||
|
|
@ -1319,7 +1323,6 @@ Goal::Done DerivationBuildingGoal::doneSuccess(BuildResult::Status status, Singl
|
|||
|
||||
Goal::Done DerivationBuildingGoal::doneFailure(BuildError ex)
|
||||
{
|
||||
outputLocks.unlock();
|
||||
buildResult.status = ex.status;
|
||||
buildResult.errorMsg = fmt("%s", Uncolored(ex.info().msg));
|
||||
if (buildResult.status == BuildResult::TimedOut)
|
||||
|
|
|
|||
|
|
@ -43,11 +43,6 @@ struct DerivationBuildingGoal : public Goal
|
|||
* The remainder is state held during the build.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Locks on (fixed) output paths.
|
||||
*/
|
||||
PathLocks outputLocks;
|
||||
|
||||
/**
|
||||
* All input paths (that is, the union of FS closures of the
|
||||
* immediate input paths).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue