Die rather than warn if a Docker image is missing

The warning was done to handle older Nix releases that didn't have
Docker images (091f232896), but this was
a bad idea because it causes us to silently skip uploading Docker
images if e.g. Hydra hasn't finished building them yet.

Issue #10648.
This commit is contained in:
Eelco Dolstra 2024-05-10 11:31:36 +02:00
parent de8c3c034c
commit 6df07f3e81

View file

@ -189,10 +189,7 @@ for my $platforms (["x86_64-linux", "amd64"], ["aarch64-linux", "arm64"]) {
eval {
downloadFile("dockerImage.$system", "1", $fn);
};
if ($@) {
warn "$@" if $@;
next;
}
die "$@" if $@;
$haveDocker = 1;
print STDERR "loading docker image for $dockerPlatform...\n";