From 1d49fd4fab2396fc92bf9930875947ce79a27610 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 24 Aug 2022 22:24:59 +0300 Subject: 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(-) (limited to 'gnu/packages') 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)) -- cgit v1.2.3