From 61f8f75e9378d66568bd652e15e4212ae763f949 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 15 Feb 2017 00:15:21 +0100 Subject: base: Do not stop on the first build failure. * src/cuirass/base.scm (process-specs): Systematically call 'set-build-options'. Pass #:keep-going? #t. --- src/cuirass/base.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/cuirass/base.scm b/src/cuirass/base.scm index 9062ebf..e1b0ad4 100644 --- a/src/cuirass/base.scm +++ b/src/cuirass/base.scm @@ -1,5 +1,5 @@ ;;; base.scm -- Cuirass base module -;;; Copyright © 2016 Ludovic Courtès +;;; Copyright © 2016, 2017 Ludovic Courtès ;;; Copyright © 2016 Mathieu Lirzin ;;; Copyright © 2017 Mathieu Othacehe ;;; @@ -173,10 +173,14 @@ if required. Return the last commit ID on success, #f otherwise." (compile (string-append (%package-cachedir) "/" (assq-ref spec #:name)))) (with-store store + ;; Always set #:keep-going? so we don't stop on the first build + ;; failure. + (set-build-options store + #:use-substitutes? (%use-substitutes?) + #:keep-going? #t) + (let* ((spec* (acons #:current-commit commit spec)) (jobs (evaluate store db spec*))) - (unless (%use-substitutes?) - (set-build-options store #:use-substitutes? #f)) (build-packages store db jobs)))) (db-add-stamp db spec commit)))) -- cgit v1.2.3