me
/
guix
Archived
1
0
Fork 0

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.
master
Efraim Flashner 2022-08-24 22:24:59 +03:00
parent 23e03dd087
commit 1d49fd4fab
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 10 additions and 1 deletions

View File

@ -3026,7 +3026,16 @@ Go.")
(delete-file-recursively "vendor"))))) (delete-file-recursively "vendor")))))
(build-system go-build-system) (build-system go-build-system)
(arguments (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 (propagated-inputs
(list go-github-com-davecgh-go-spew (list go-github-com-davecgh-go-spew
go-github-com-pmezard-go-difflib)) go-github-com-pmezard-go-difflib))