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:
Sharlatan Hellseher 2024-04-12 16:04:04 +01:00
parent f704d64fa7
commit e60072bff7
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3304,14 +3304,27 @@ (define-public go-go-uber-org-zap
(base32 "0lzbbs87fvixzbyv4wpl3s70vm2m0jz2jgdvrviiksc2al451qgs")))) (base32 "0lzbbs87fvixzbyv4wpl3s70vm2m0jz2jgdvrviiksc2al451qgs"))))
(build-system go-build-system) (build-system go-build-system)
(arguments (arguments
'(#:import-path "go.uber.org/zap" (list
#:tests? #f)) ; TODO: Fix tests #: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 (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-golang-org-x-lint
go-honnef-co-go-tools)) go-honnef-co-go-tools))
(propagated-inputs (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-atomic
go-go-uber-org-multierr go-go-uber-org-multierr
go-gopkg-in-yaml-v2)) go-gopkg-in-yaml-v2))