1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 06:01:48 +02:00

* Always print hook output on stderr, even if --no-build-output is

set.
* In the build hook, print a trace message to allow Hydra to pick up
  the name of the remote machine used for the build.
This commit is contained in:
Eelco Dolstra 2010-08-31 12:36:24 +00:00
parent e2e168f7c2
commit bf0dde9597
2 changed files with 17 additions and 6 deletions

View file

@ -42,7 +42,7 @@ sub all { $_ || return 0 for @_; 1 }
# Initialisation.
my $loadIncreased = 0;
my ($localSystem, $maxSilentTime) = @ARGV;
my ($localSystem, $maxSilentTime, $printBuildTrace) = @ARGV;
$maxSilentTime = 0 unless defined $maxSilentTime;
my $currentLoad = $ENV{"NIX_CURRENT_LOAD"};
@ -197,12 +197,15 @@ REQ: while (1) {
# Tell Nix we've accepted the build.
print STDERR "building `$drvPath' on `$hostName'\n";
sendReply "accept";
my @inputs = split /\s/, readline(STDIN);
my @outputs = split /\s/, readline(STDIN);
print STDERR "building `$drvPath' on `$hostName'\n";
print STDERR "@ build-remote $drvPath $hostName\n" if $printBuildTrace;
my $maybeSign = "";
$maybeSign = "--sign" if -e "/nix/etc/nix/signing-key.sec";