Skip to content

Commit f44a1e9

Browse files
committed
hydra-eval-jobs: unset NIX_PATH
1 parent b3e05f6 commit f44a1e9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/script/hydra-eval-jobset

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,14 @@ sub evalJobs {
396396
print STDERR "evaluator: @escaped\n";
397397
}
398398

399+
# Unset NIX_PATH for nix-eval-jobs to ensure reproducible evaluations
400+
my %env = %ENV;
401+
delete $env{'NIX_PATH'};
402+
399403
my $evalProc = IPC::Run::start \@cmd,
400404
'>', IPC::Run::new_chunker, \my $out,
401-
'2>', \my $err;
405+
'2>', \my $err,
406+
init => sub { %ENV = %env; };
402407

403408
return sub {
404409
while (1) {

0 commit comments

Comments
 (0)