[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/32: gnu: go-github-com-kylelemons-godebug: Improve style.
From: |
guix-commits |
Subject: |
05/32: gnu: go-github-com-kylelemons-godebug: Improve style. |
Date: |
Sun, 24 Nov 2024 07:50:50 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit aa1773d340b272933ab1d36b9031c1d1b620a419
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Nov 24 10:44:08 2024 +0000
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
---
gnu/packages/golang.scm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1c1d3e6b5b..865f20f1b1 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4666,8 +4666,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
- branch go-team created (now 00fda872d0), guix-commits, 2024/11/24
- 01/32: gnu: Remove go-github-com-calmh-xdr., guix-commits, 2024/11/24
- 07/32: gnu: go-github-com-cyphar-filepath-securejoin: Update to 0.3.4., guix-commits, 2024/11/24
- 05/32: gnu: go-github-com-kylelemons-godebug: Improve style.,
guix-commits <=
- 06/32: gnu: go-github-com-kylelemons-godebug: Move to golang-xyz., guix-commits, 2024/11/24
- 11/32: gnu: go-github-com-spf13-viper: Update to 1.8.1., guix-commits, 2024/11/24
- 08/32: gnu: go-github-com-spf13-afero: Update to 1.6.0., guix-commits, 2024/11/24
- 09/32: gnu: go-github-com-spf13-cast: Update to 1.7.0., guix-commits, 2024/11/24
- 14/32: gnu: go-github-com-spf13-cast: Move to golang-xyz., guix-commits, 2024/11/24
- 17/32: gnu: go-github-com-spf13-pflag: Move to golang-xyz., guix-commits, 2024/11/24
- 19/32: gnu: go-github-com-nxadm-tail: Update to 1.4.11., guix-commits, 2024/11/24
- 32/32: gnu: packages/textutils: Remove golang module., guix-commits, 2024/11/24
- 13/32: gnu: go-github-com-spf13-afero: Run all tests., guix-commits, 2024/11/24
- 02/32: gnu: Remove go-github-com-dustin-gojson., guix-commits, 2024/11/24