guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: lint: check-derivation: Catch all exceptions.


From: guix-commits
Subject: branch master updated: lint: check-derivation: Catch all exceptions.
Date: Mon, 23 May 2022 18:22:58 -0400

This is an automated email from the git hooks/post-receive script.

cbaines pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 00be2fcb0b lint: check-derivation: Catch all exceptions.
00be2fcb0b is described below

commit 00be2fcb0b79641790a793df7640344e96283a2a
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Mon May 23 23:18:30 2022 +0100

    lint: check-derivation: Catch all exceptions.
    
    Rather than raising the exception.
    
    I'm looking at this as the linux-module-build-system is broken in such a way
    that this causes the derivation linter to error.  With this change, it
    correctly reports the issue.
    
    * guix/lint.scm (check-derivation): Catch all exceptions.
---
 guix/lint.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/guix/lint.scm b/guix/lint.scm
index e535eb8158..375f189335 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -1348,7 +1348,11 @@ descriptions maintained upstream."
                                  (formatted-message-arguments c))))
                  (make-warning package
                                (G_ "failed to create ~a derivation: ~a")
-                               (list system str)))))
+                               (list system str))))
+              (else
+               (make-warning package
+                             (G_ "failed to create ~a derivation: ~a")
+                             (list system c))))
       (parameterize ((%graft? #f))
         (package-derivation store package system #:graft? #f)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]