From e60072bff7adc21a844f6b683f13b4c0e3c4a632 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 12 Apr 2024 16:04:04 +0100 Subject: 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 --- gnu/packages/golang-xyz.scm | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a525bbd176..8ca83d7d64 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -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)) -- cgit v1.2.3