forked from lix-project/hydra
hydra-build: Give a nicer error message if the derivation is gone
This commit is contained in:
parent
cceab7308b
commit
98a105fe69
1 changed files with 6 additions and 0 deletions
|
@ -114,6 +114,12 @@ sub doBuild {
|
|||
|
||||
my $dependents = [];
|
||||
|
||||
if (!isValidPath($drvPath)) {
|
||||
$buildStatus = 3;
|
||||
$errormsg = "derivation was garbage-collected prior to build";
|
||||
goto done;
|
||||
}
|
||||
|
||||
unless (all { isValidPath($_) } values(%outputs)) {
|
||||
$isCachedBuild = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue