From bb0096af80adbd1750776acf063ba35ba4dc5cee Mon Sep 17 00:00:00 2001 From: Patrick Norton Date: Sun, 4 Jan 2026 10:03:54 -0500 Subject: [PATCH] gnu: Add go-github-com-creachadair-taskgroup. * gnu/packages/golang-xyz.scm (go-github-com-creachadair-taskgroup): New variable. Change-Id: I25170ed6542ab77e1a05a054fea9f7c5230864b0 Relates-to: https://codeberg.org/guix/guix/pulls/5417 Edited-by: Johannes Christ Reviewed-by: Johannes Christ Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d88a3d2bf64..0a6d6c7afd8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7470,6 +7470,40 @@ goroutines and @code{trigger}, that implements channel-based condition variable.") (license license:bsd-3))) +(define-public go-github-com-creachadair-taskgroup + (package + (name "go-github-com-creachadair-taskgroup") + (version "0.14.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/creachadair/taskgroup") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0cc9w5v1iw8gwqz9w6ydr4hlw5wf3r9d1xi75hz11zz8ry4qraj5")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.25 + #:import-path "github.com/creachadair/taskgroup" + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda* (#:key tests? import-path #:allow-other-keys) + ;; See: . + (setenv "GOEXPERIMENT" "synctest") + (setenv "GODEBUG" "asynctimerchan=0")))))) + (home-page "https://github.com/creachadair/taskgroup") + (synopsis "Manage a group of collaborating goroutines") + (description + "This package manages collections of cooperating goroutines. It defines +a @code{Group} that handles waiting for goroutine termination and the +propagation of error values. The caller may provide a callback to filter and +respond to task errors.") + (license license:bsd-3))) + (define-public go-github-com-creack-pty (package (name "go-github-com-creack-pty")