mirror of
https://github.com/NixOS/nix.git
synced 2025-12-11 11:31:03 +01: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
|
|
@ -613,9 +613,6 @@ Goal::Co DerivationBuildingGoal::tryToBuild()
|
|||
void closeLogFile() override {
|
||||
goal.closeLogFile();
|
||||
}
|
||||
SingleDrvOutputs assertPathValidity() override {
|
||||
return goal.assertPathValidity();
|
||||
}
|
||||
void appendLogTailErrorMsg(std::string & msg) override {
|
||||
goal.appendLogTailErrorMsg(msg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,6 +210,13 @@ Goal::Co DerivationGoal::haveDerivation(StorePath drvPath)
|
|||
.outputs = wantedOutputs,
|
||||
});
|
||||
|
||||
if (buildMode == bmCheck) {
|
||||
/* In checking mode, the builder will not register any outputs.
|
||||
So we want to make sure the ones that we wanted to check are
|
||||
properly there. */
|
||||
buildResult.builtOutputs = assertPathValidity(drvPath);
|
||||
}
|
||||
|
||||
co_return amDone(g->exitCode, g->ex);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue