sharlatan pushed a commit to branch go-team
in repository guix.
commit 569c8b99d01808730a8f106730b67b10b761fb13
Author: Sharlatan Hellseher <[email protected]>
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 8b6acc491f..8c81cbbbdd 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4096,7 +4096,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