about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2018-04-15 13:58:05 +0100
committerLinus Heckemann <git@sphalerite.org>2018-04-15 13:58:05 +0100
commit4a30f2efecc8bea1ad605388baa5db7668a9f580 (patch)
tree5359576d7e0c3379706302fc45efed7dab4cd85e /pkgs/build-support
parent1b480c8538303f4e987278b259e0f0decd14bf18 (diff)
downloadnixlib-4a30f2efecc8bea1ad605388baa5db7668a9f580.tar
nixlib-4a30f2efecc8bea1ad605388baa5db7668a9f580.tar.gz
nixlib-4a30f2efecc8bea1ad605388baa5db7668a9f580.tar.bz2
nixlib-4a30f2efecc8bea1ad605388baa5db7668a9f580.tar.lz
nixlib-4a30f2efecc8bea1ad605388baa5db7668a9f580.tar.xz
nixlib-4a30f2efecc8bea1ad605388baa5db7668a9f580.tar.zst
nixlib-4a30f2efecc8bea1ad605388baa5db7668a9f580.zip
requireFile: exit with non-zero error message
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.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/trivial-builders.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix
index 9664abeb4651..d092efb556e5 100644
--- a/pkgs/build-support/trivial-builders.nix
+++ b/pkgs/build-support/trivial-builders.nix
@@ -170,6 +170,7 @@ rec {
         ***
 
         _EOF_
+        exit 1
       '';
     };