guix-commits
[Top][All Lists]
Advanced

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

01/14: gnu: go-github-com-pkg-errors: Skip tests with gccgo.


From: guix-commits
Subject: 01/14: gnu: go-github-com-pkg-errors: Skip tests with gccgo.
Date: Thu, 25 Aug 2022 06:07:42 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 25494265b28d0121e9d1e12113fd64d9dcefe8f7
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Aug 24 21:19:42 2022 +0300

    gnu: go-github-com-pkg-errors: Skip tests with gccgo.
    
    * gnu/packages/golang.scm (go-github-com-pkg-errors)[arguments]: Don't
    run the test suite when building with gccgo.
---
 gnu/packages/golang.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index d2f3dc39df..29812d48ef 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -54,6 +54,7 @@
 (define-module (gnu packages golang)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix utils)
+  #:use-module (guix gexp)
   #:use-module (guix memoization)
   #:use-module ((guix build utils) #:select (alist-replace))
   #:use-module (guix download)
@@ -6017,7 +6018,16 @@ decode/encode structures and slices.")
                 "1761pybhc2kqr6v5fm8faj08x9bql8427yqg6vnfv6nhrasx1mwq"))))
     (build-system go-build-system)
     (arguments
-     `(#:import-path "github.com/pkg/errors"))
+     (list
+       #:import-path "github.com/pkg/errors"
+       #:phases
+       #~(modify-phases %standard-phases
+           (replace 'check
+             (lambda* (#:key inputs #:allow-other-keys #:rest args)
+               (unless
+                 ;; The tests fail when run with gccgo.
+                 (false-if-exception (search-input-file inputs "/bin/gccgo"))
+                 (apply (assoc-ref %standard-phases 'check) args)))))))
     (synopsis "Go error handling primitives")
     (description "This package provides @code{error}, which offers simple
 error handling primitives in Go.")



reply via email to

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