guix-commits
[Top][All Lists]
Advanced

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

02/14: gnu: go-github.com-jtolds-gls: Skip tests with gccgo.


From: guix-commits
Subject: 02/14: gnu: go-github.com-jtolds-gls: 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 54da48e2cea47b230f9306dcb33e41dfa934a84e
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Aug 24 21:27:00 2022 +0300

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

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 29812d48ef..98338cb701 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2439,7 +2439,16 @@ termination.")
                 "1k7xd2q2ysv2xsh373qs801v6f359240kx0vrl0ydh7731lngvk6"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/jtolds/gls"))
+     (list
+       #:import-path "github.com/jtolds/gls"
+       #: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 "@code{gls} provides Goroutine local storage")
     (description
      "The @code{gls} package provides a way to store a retrieve values



reply via email to

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