From: Thomas Ieong <th.ieong@free.fr>
To: 61946@debbugs.gnu.org
Cc: Thomas Ieong <th.ieong@free.fr>
Subject: [bug#61946] [PATCH 2/6] gnu: Add go-github-com-matryer-try.
Date: Sat, 4 Mar 2023 00:01:55 +0100 [thread overview]
Message-ID: <18e0e057247ef14681c3131b52a83a16dac485dd.1677883649.git.th.ieong@free.fr> (raw)
In-Reply-To: <cover.1677883649.git.th.ieong@free.fr>
* 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
next prev parent reply other threads:[~2023-03-03 23:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 22:55 [bug#61946] [PATCH 0/6] gnu: golang: Add minify Thomas Ieong
2023-03-03 23:01 ` [bug#61946] [PATCH 1/6] gnu: Add go-github-com-djherbis-atime Thomas Ieong
2023-03-03 23:01 ` Thomas Ieong [this message]
2023-03-03 23:01 ` [bug#61946] [PATCH 3/6] gnu: Add go-github-com-tdewolff-parse-v2 Thomas Ieong
2023-03-03 23:01 ` [bug#61946] [PATCH 4/6] gnu: Add go-github-com-tdewolff-test Thomas Ieong
2023-03-03 23:01 ` [bug#61946] [PATCH 5/6] gnu: Add go-github-com-tdewolff-minify-v2 Thomas Ieong
2023-03-03 23:01 ` [bug#61946] [PATCH 6/6] gnu: Add minify Thomas Ieong
2023-03-04 21:30 ` [bug#61946] Go generated files Thomas Ieong
2023-08-10 12:12 ` Hilton Chain via Guix-patches via
2024-01-30 23:17 ` bug#61946: [PATCH 0/6] gnu: golang: Add minify Sharlatan Hellseher
2024-02-01 3:10 ` [bug#61946] " Hilton Chain via Guix-patches via
2024-02-01 20:54 ` Sharlatan Hellseher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18e0e057247ef14681c3131b52a83a16dac485dd.1677883649.git.th.ieong@free.fr \
--to=th.ieong@free.fr \
--cc=61946@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.