summaryrefslogtreecommitdiff
path: root/gnu/packages/golang.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-11-24 10:44:08 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-01-21 23:41:42 +0000
commitc253c9db5d319abc85eaf7d0a391c0108b622ce4 (patch)
tree4bda63cb83b250c6e64437f51570eea958b670c9 /gnu/packages/golang.scm
parentbdedac98641c054aafcef06584a8befcd0da0e7c (diff)
gnu: go-github-com-kylelemons-godebug: Improve style.
* gnu/packages/golang.scm (go-github-com-kylelemons-godebug): Provide "diff" and "pritty" modules together. [arguments]<phases>: Remove 'build, add custom 'check. Change-Id: I4815d3476025c0c16645e32c675de601ba582f6d
Diffstat (limited to 'gnu/packages/golang.scm')
-rw-r--r--gnu/packages/golang.scm13
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 6285f96852..12abc75266 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4667,8 +4667,17 @@ have super fancy logs.")
"0dkk3friykg8p6wgqryx6745ahhb9z1j740k7px9dac6v5xjp78c"))))
(build-system go-build-system)
(arguments
- '(#:import-path "github.com/kylelemons/godebug/diff"
- #:unpack-path "github.com/kylelemons/godebug"))
+ (list
+ #:import-path "github.com/kylelemons/godebug"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: Replace when go-build-system supports nested path.
+ (delete 'build)
+ (replace 'check
+ (lambda* (#:key import-path tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "go" "test" "-v" "./..."))))))))
(home-page "https://github.com/kylelemons/godebug")
(synopsis "Pretty printer for Go values")
(description