me
/
guix
Archived
1
0
Fork 0

gnu: go-github-com-sirupsen-logrus: Skip tests with gccgo.

* gnu/packages/golang.scm (go-github-com-sirupsen-logrus)[arguments]:
Don't run the test suite when building with gccgo.
master
Efraim Flashner 2022-08-24 22:49:25 +03:00
parent 8772030630
commit c15692b938
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 11 additions and 2 deletions

View File

@ -3812,12 +3812,21 @@ application's http.Handlers.")
(base32
"12i402dxq5js4npnncg043vx874h6nk4ffn4gswcccxrp6h10ivz"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/sirupsen/logrus"
#: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
go-github-com-stretchr-testify go-golang-org-x-crypto
go-golang-org-x-sys))
(arguments
'(#:import-path "github.com/sirupsen/logrus"))
(home-page "https://github.com/sirupsen/logrus")
(synopsis "Structured, pluggable logging for Go")
(description "Logrus is a structured logger for Go, completely API