guix-commits
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]