forked from lix-project/hydra
Better fix for dots in jobset names
This commit is contained in:
parent
ea80a75204
commit
8f7614030e
|
@ -34,7 +34,7 @@ sub parseJobName {
|
||||||
our $key;
|
our $key;
|
||||||
our %attrs = ();
|
our %attrs = ();
|
||||||
# hm, maybe I should stop programming Perl before it's too late...
|
# hm, maybe I should stop programming Perl before it's too late...
|
||||||
$s =~ / ^ (?: (?: ([\w\-]+) : )? ([\w\-\.]+) : )? ([\w\-\.]+) \s*
|
$s =~ / ^ (?: (?: ($projectNameRE) : )? ($jobsetNameRE) : )? ($jobNameRE) \s*
|
||||||
(\[ \s* (
|
(\[ \s* (
|
||||||
([\w]+) (?{ $key = $^N; }) \s* = \s* \"
|
([\w]+) (?{ $key = $^N; }) \s* = \s* \"
|
||||||
([\w\-]+) (?{ $attrs{$key} = $^N; }) \"
|
([\w\-]+) (?{ $attrs{$key} = $^N; }) \"
|
||||||
|
@ -327,7 +327,7 @@ sub evalJobs {
|
||||||
my ($inputInfo, $exprType, $nixExprInputName, $nixExprPath) = @_;
|
my ($inputInfo, $exprType, $nixExprInputName, $nixExprPath) = @_;
|
||||||
|
|
||||||
my $nixExprInput = $inputInfo->{$nixExprInputName}->[0]
|
my $nixExprInput = $inputInfo->{$nixExprInputName}->[0]
|
||||||
or die "cannot find the input containing the job expression.\n";
|
or die "cannot find the input containing the job expression\n";
|
||||||
die "multiple alternatives for the input containing the Nix expression are not supported.\n"
|
die "multiple alternatives for the input containing the Nix expression are not supported.\n"
|
||||||
if scalar @{$inputInfo->{$nixExprInputName}} != 1;
|
if scalar @{$inputInfo->{$nixExprInputName}} != 1;
|
||||||
my $nixExprFullPath = $nixExprInput->{storePath} . "/" . $nixExprPath;
|
my $nixExprFullPath = $nixExprInput->{storePath} . "/" . $nixExprPath;
|
||||||
|
|
Loading…
Reference in a new issue