forked from lix-project/hydra
hydra-evaluator: Fix input change check
Because inputs were processed in random order by inputsToArgs, the inputs hash could be different every time, leading to unnecessary re-evaluations.
This commit is contained in:
parent
3e7bbec40b
commit
7f865a30d5
|
@ -277,7 +277,7 @@ sub inputsToArgs {
|
||||||
my ($inputInfo, $exprType) = @_;
|
my ($inputInfo, $exprType) = @_;
|
||||||
my @res = ();
|
my @res = ();
|
||||||
|
|
||||||
foreach my $input (keys %{$inputInfo}) {
|
foreach my $input (sort keys %{$inputInfo}) {
|
||||||
push @res, "-I", "$input=$inputInfo->{$input}->[0]->{storePath}"
|
push @res, "-I", "$input=$inputInfo->{$input}->[0]->{storePath}"
|
||||||
if scalar @{$inputInfo->{$input}} == 1
|
if scalar @{$inputInfo->{$input}} == 1
|
||||||
&& defined $inputInfo->{$input}->[0]->{storePath};
|
&& defined $inputInfo->{$input}->[0]->{storePath};
|
||||||
|
|
Loading…
Reference in a new issue