From 4a30f2efecc8bea1ad605388baa5db7668a9f580 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Sun, 15 Apr 2018 13:58:05 +0100 Subject: [PATCH] requireFile: exit with non-zero error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the script running is a failure condition, we should fail the build properly, not leaving it up to the missing output to determine that the build went wrong. This should partly address #38952 — nix build will print out the build log on non-zero exits. --- pkgs/build-support/trivial-builders.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix index 9664abeb465..d092efb556e 100644 --- a/pkgs/build-support/trivial-builders.nix +++ b/pkgs/build-support/trivial-builders.nix @@ -170,6 +170,7 @@ rec { *** _EOF_ + exit 1 ''; };