Fix tests on systems with a non-master git defaultBranch #1

Open
zebreus wants to merge 140 commits from fix-tests-without-master into main
2 changed files with 4 additions and 4 deletions
Showing only changes of commit c2b90d235f - Show all commits

View file

@ -649,7 +649,7 @@ Goal::WorkResult DerivationGoal::inputsRealised(bool inBuildSlot)
slot to become available, since we don't need one if there is a
build hook. */
state = &DerivationGoal::tryToBuild;
return ContinueImmediately{};
return tryToBuild(inBuildSlot);
}
void DerivationGoal::started()
@ -772,7 +772,7 @@ Goal::WorkResult DerivationGoal::tryToBuild(bool inBuildSlot)
actLock.reset();
state = &DerivationGoal::tryLocalBuild;
return ContinueImmediately{};
return tryLocalBuild(inBuildSlot);
}
Goal::WorkResult DerivationGoal::tryLocalBuild(bool inBuildSlot) {

View file

@ -188,7 +188,7 @@ Goal::WorkResult PathSubstitutionGoal::referencesValid(bool inBuildSlot)
assert(worker.store.isValidPath(i));
state = &PathSubstitutionGoal::tryToRun;
return ContinueImmediately{};
return tryToRun(inBuildSlot);
}
@ -256,7 +256,7 @@ Goal::WorkResult PathSubstitutionGoal::finished(bool inBuildSlot)
/* Try the next substitute. */
state = &PathSubstitutionGoal::tryNext;
return ContinueImmediately{};
return tryNext(inBuildSlot);
}
worker.markContentsGood(storePath);