From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:50857) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inBrj-0001c8-T9 for guix-patches@gnu.org; Thu, 02 Jan 2020 20:35:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inBri-0007FS-Lb for guix-patches@gnu.org; Thu, 02 Jan 2020 20:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34286) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inBri-0007F4-Hu for guix-patches@gnu.org; Thu, 02 Jan 2020 20:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1inBri-0008Eo-Dq for guix-patches@gnu.org; Thu, 02 Jan 2020 20:35:02 -0500 Subject: [bug#38885] [WIP 1/4] gnu: Add go-golang.org-x-sync-errgroup. Resent-Message-ID: From: Danny Milosavljevic Date: Fri, 3 Jan 2020 02:34:30 +0100 Message-Id: <20200103013433.14866-1-dannym@scratchpost.org> In-Reply-To: <20200103013303.13336-1-dannym@scratchpost.org> References: <20200103013303.13336-1-dannym@scratchpost.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38885@debbugs.gnu.org Cc: Danny Milosavljevic * gnu/packages/golang.scm (go-golang.org-x-sync-errgroup): New variable. --- gnu/packages/golang.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f94251abaf..1522409c37 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3080,3 +3080,27 @@ alternative to @code{reflect.DeepEqual} for comparing whether two values are semantically equal in Go (for writing tests).") (home-page "https://godoc.org/github.com/google/go-cmp/cmp") (license license:asl2.0))) + +(define-public go-golang.org-x-sync-errgroup + (let ((commit "cd5d95a43a6e21273425c7ae415d3df9ea832eeb") + (revision "0")) + (package + (name "go-golang.org-x-sync-errgroup") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/sync") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1nqkyz2y1qvqcma52ijh02s8aiqmkfb95j08f6zcjhbga3ds6hds")))) + (build-system go-build-system) + (arguments + '(#:import-path "golang.org/x/sync/errgroup" + #:unpack-path "golang.org/x/sync")) + (synopsis "Synchronization, error propagation, and Context cancelation for groups of goroutines working on subtasks of a common task.") + (description "This package provides synchronization, error propagation, and Context cancelation for groups of goroutines working on subtasks of a common task.") + (home-page "https://godoc.org/golang.org/x/sync/errgroup") + (license license:bsd-3))))