guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

29/37: gnu: Add go-github-com-hashicorp-go-multierror.


From: guix-commits
Subject: 29/37: gnu: Add go-github-com-hashicorp-go-multierror.
Date: Wed, 6 Mar 2024 18:46:21 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit b577550c0026b27c0493480cac7852881eec4116
Author: Artyom V. Poptsov <poptsov.artyom@gmail.com>
AuthorDate: Sat Mar 2 23:26:40 2024 +0300

    gnu: Add go-github-com-hashicorp-go-multierror.
    
    * gnu/packages/golang-xyz.scm (go-github-com-hashicorp-go-multierror): New
      variable.
    
    Change-Id: I6b09a52dc314c4cc6903690738debf4b6c99393f
    Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index f488b17e61..08c3df44b5 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -792,6 +792,34 @@ Differentiation between text and binary files}.
 wrapping errors and checking if an error contains another error.")
     (license license:mpl2.0)))
 
+(define-public go-github-com-hashicorp-go-multierror
+  (package
+    (name "go-github-com-hashicorp-go-multierror")
+    (version "1.1.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/hashicorp/go-multierror";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0l4s41skdpifndn9s8y6s9vzgghdzg4z8z0lld9qjr28888wzp00"))))
+    (build-system go-build-system)
+    (inputs (list go-github-com-hashicorp-errwrap))
+    (arguments
+     (list
+      #:import-path "github.com/hashicorp/go-multierror"))
+    (home-page "https://github.com/hashicorp/go-multierror";)
+    (synopsis "Representing a errors list as a single error for Golang")
+    (description
+     "@code{go-multierror} is Golang module providing a mechanism for
+representing a list of @code{error} values as a single @code{error}.  It is
+fully compatible with the standard @code{errors} package, including
+the functions @code{As}, @code{Is}, and @code{Unwrap}.  This provides a
+standardized approach for introspecting on error values.")
+    (license license:mpl2.0)))
+
 (define-public go-github-com-hhrutter-tiff
   (package
     (name "go-github-com-hhrutter-tiff")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]