guix-commits
[Top][All Lists]
Advanced

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

10/14: gnu: go-github-com-stretchr-objx: Skip tests with gccgo.


From: guix-commits
Subject: 10/14: gnu: go-github-com-stretchr-objx: Skip tests with gccgo.
Date: Thu, 25 Aug 2022 06:07:44 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 1d49fd4fab2396fc92bf9930875947ce79a27610
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Aug 24 22:24:59 2022 +0300

    gnu: go-github-com-stretchr-objx: Skip tests with gccgo.
    
    * gnu/packages/golang.scm (go-github-com-stretchr-objx)[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 8b343890aa..537722f164 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3026,7 +3026,16 @@ Go.")
             (delete-file-recursively "vendor")))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/stretchr/objx"))
+     (list
+       #:import-path "github.com/stretchr/objx"
+       #: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)))))))
     (propagated-inputs
      (list go-github-com-davecgh-go-spew
            go-github-com-pmezard-go-difflib))



reply via email to

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