unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#69711] [PATCH] gnu: Add go-github-com-hashicorp-go-cleanhttp.
@ 2024-03-10 15:37 Troy Figiel
  2024-03-21 23:53 ` bug#69711: " Sharlatan Hellseher
  0 siblings, 1 reply; 2+ messages in thread
From: Troy Figiel @ 2024-03-10 15:37 UTC (permalink / raw)
  To: 69711

* gnu/packages/golang-web.scm (go-github-com-hashicorp-go-cleanhttp): New variable.
---
 gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 1d7ad01af2..b9dcdd46a7 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -964,6 +964,35 @@ (define-public go-github-com-gregjones-httpcache
 shared proxy).")
       (license license:expat))))
 
+(define-public go-github-com-hashicorp-go-cleanhttp
+  (package
+    (name "go-github-com-hashicorp-go-cleanhttp")
+    (version "0.5.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/hashicorp/go-cleanhttp")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1i5xslizzwd966w81bz6dxjwzgml4q9bwqa186bsxd1vi8lqxl9p"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/hashicorp/go-cleanhttp"))
+    (home-page "https://github.com/hashicorp/go-cleanhttp")
+    (synopsis "Functions for accessing clean Go @code{http.Client} values")
+    (description
+     "The Go standard library contains a default @code{http.Client} and it is
+a common idiom to tweak it as necessary.  Unfortunately, this is a shared
+value, and it is not uncommon for libraries to assume that they are free to
+modify it at will.  This package provides some simple functions to get a
+\"clean\" @code{http.Client}, namely one that uses the same default values as
+the Go standard library, but returns a client that does not share any state
+with other clients.")
+    (license license:mpl2.0)))
+
 (define-public go-github-com-hjson-hjson-go
   (package
     (name "go-github-com-hjson-hjson-go")

base-commit: c7836393be4d134861d652b2fcf09cf4e68275ca
-- 
2.42.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#69711: [PATCH] gnu: Add go-github-com-hashicorp-go-cleanhttp.
  2024-03-10 15:37 [bug#69711] [PATCH] gnu: Add go-github-com-hashicorp-go-cleanhttp Troy Figiel
@ 2024-03-21 23:53 ` Sharlatan Hellseher
  0 siblings, 0 replies; 2+ messages in thread
From: Sharlatan Hellseher @ 2024-03-21 23:53 UTC (permalink / raw)
  To: 69711-done

[-- Attachment #1: Type: text/plain, Size: 63 bytes --]


Pushed as 8d27fe61d7f1a2bed0367fa861e4cae1f2f1546d to master.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-21 23:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-10 15:37 [bug#69711] [PATCH] gnu: Add go-github-com-hashicorp-go-cleanhttp Troy Figiel
2024-03-21 23:53 ` bug#69711: " Sharlatan Hellseher

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).