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

commit 79a44bbcf4c67b1d08dde396d18cde290feffd22
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri May 1 15:10:18 2026 +0100

    gnu: go-github-com-gammazero-chanqueue: Fix tests.
    
    * gnu/packages/golang-xyz.scm (go-github-com-gammazero-chanqueue):
    [phases]{pre-check}: New phase.
    
    Change-Id: Ie6c96c955bb5716f3bd16d47893758686e34accf
---
 gnu/packages/golang-xyz.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 26694cd571..0694bf9b5a 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -10751,7 +10751,14 @@ Differentiation between text and binary files}.
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/gammazero/chanqueue"))
+      #:import-path "github.com/gammazero/chanqueue"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'pre-check
+            (lambda* (#:key tests? import-path #:allow-other-keys)
+              ;; See: <https://go.dev/blog/synctest>.
+              (setenv "GOEXPERIMENT" "synctest")
+              (setenv "GODEBUG" "asynctimerchan=0"))))))
     (native-inputs
      (list go-go-uber-org-goleak))
     (propagated-inputs

Reply via email to