sharlatan pushed a commit to branch go-team
in repository guix.

commit 642ec32676b5f7aebc7235a37aae160fb7697d8e
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sat Mar 1 08:12:02 2025 +0000

    gnu: go-github-com-cskr-pubsub: Fix tests.
    
    * gnu/packages/golang-xyz.scm (go-github-com-cskr-pubsub) [arguments]
    <phases>: Add 'remove-example.
    
    Change-Id: I505f5def2567471cd36c1da0a5a0ff82eb1bbe3c
---
 gnu/packages/golang-xyz.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 33426c8906..82a60152ab 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4098,7 +4098,13 @@ values.  It supports almost all kind of types: 
@code{int/8/16/32/64},
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/cskr/pubsub"))
+      #:import-path "github.com/cskr/pubsub"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-example
+            (lambda* (#:key tests? import-path #:allow-other-keys)
+              (with-directory-excursion (string-append "src/" import-path)
+                (delete-file "example_test.go")))))))
     (home-page "https://github.com/cskr/pubsub";)
     (synopsis "Simple pubsub package for go")
     (description

Reply via email to