mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: go-go-uber-org-zap: Enable tests.
* gnu/packages/golang-xyz.scm (go-go-uber-org-zap): [arguments]: <#:go>: Use go-1.19. <#:tests?>: Enable them. <#:phases>: Add 'remove-test-files phase. [propagated-inputs]: Add go-github-com-benbjohnson-clock. [native-inputs]: Remove go-github-com-stretchr-testify; add go-github-com-stretchr-testify-next and go-go-uber-org-goleak. Change-Id: I6c96d1067338e9b8d1b8d26488dc1471cbde5b21
This commit is contained in:
parent
f704d64fa7
commit
e60072bff7
1 changed files with 17 additions and 4 deletions
|
@ -3304,14 +3304,27 @@ (define-public go-go-uber-org-zap
|
|||
(base32 "0lzbbs87fvixzbyv4wpl3s70vm2m0jz2jgdvrviiksc2al451qgs"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
'(#:import-path "go.uber.org/zap"
|
||||
#:tests? #f)) ; TODO: Fix tests
|
||||
(list
|
||||
#:go go-1.19
|
||||
#:import-path "go.uber.org/zap"
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; Remove test files requiring to download all dependencies for the
|
||||
;; current Go module and reports their module paths and locations on
|
||||
;; disk.
|
||||
(add-after 'unpack 'remove-test-files
|
||||
(lambda* (#:key import-path #:allow-other-keys)
|
||||
(delete-file
|
||||
(string-append "src/" import-path
|
||||
"/stacktrace_ext_test.go")))))))
|
||||
(native-inputs
|
||||
(list go-github-com-stretchr-testify
|
||||
(list go-github-com-stretchr-testify-next
|
||||
go-go-uber-org-goleak
|
||||
go-golang-org-x-lint
|
||||
go-honnef-co-go-tools))
|
||||
(propagated-inputs
|
||||
(list go-github-com-pkg-errors
|
||||
(list go-github-com-benbjohnson-clock
|
||||
go-github-com-pkg-errors
|
||||
go-go-uber-org-atomic
|
||||
go-go-uber-org-multierr
|
||||
go-gopkg-in-yaml-v2))
|
||||
|
|
Loading…
Reference in a new issue