GNU bug report logs - #61946
[PATCH 0/6] gnu: golang: Add minify

Previous Next

Package: guix-patches;

Reported by: Thomas Ieong <th.ieong <at> free.fr>

Date: Fri, 3 Mar 2023 22:58:02 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Thomas Ieong <th.ieong <at> free.fr>
To: 61946 <at> debbugs.gnu.org
Cc: Thomas Ieong <th.ieong <at> free.fr>
Subject: [bug#61946] [PATCH 2/6] gnu: Add go-github-com-matryer-try.
Date: Sat,  4 Mar 2023 00:01:55 +0100
* gnu/packages/golang.scm (go-github-com-matryer-try): New variable.
---
 gnu/packages/golang.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e213ce6cb6..1bd2a51d8d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9637,6 +9637,37 @@ (define-public go-github-com-djherbis-atime
      "Package atime provides a platform-independent way to get atimes for files.")
     (license license:expat)))
 
+(define-public go-github-com-matryer-try
+  (package
+    (name "go-github-com-matryer-try")
+    (version "1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/matryer/try")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "15f0m5ywihivnvwzcw0mh0sg27aky9rkywvxqszxka9q051qvsmy"))))
+    (build-system go-build-system)
+    (native-inputs (list go-github-com-cheekybits-is))
+    (arguments
+     (list #:import-path "github.com/matryer/try"
+           #:phases #~(modify-phases %standard-phases
+                        (add-after 'unpack 'fix-tests
+                          (lambda* (#:key import-path #:allow-other-keys)
+                            (substitute* (string-append "src/" import-path
+                                                        "/try_test.go")
+                              (("var value string")
+                               "")
+                              (("value, err = SomeFunction\\(\\)")
+                               "_, err = SomeFunction()")))))))
+    (home-page "https://github.com/matryer/try")
+    (synopsis "Simple idiomatic retry package for Go")
+    (description "Package try provides retry functionality.")
+    (license license:expat)))
+
 (define-public go-github-com-hashicorp-go-syslog
   (package
     (name "go-github-com-hashicorp-go-syslog")
-- 
2.39.1





This bug report was last modified 1 year and 114 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.