sharlatan pushed a commit to branch go-team
in repository guix.

commit 74c6e3f87fad551481dc7c92cbdcd741b5e468c5
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Fri Mar 28 21:28:20 2025 +0000

    gnu: Remove go-github-com-prometheus-common-sigv4.
    
    sigv4 was extracted from <https://github.com/prometheus/common> in
    v0.63.0 and destributed as a stand alonge module.
    
    * gnu/packages/prometheus.scm (go-github-com-prometheus-common-sigv4):
    Delete variable.
    
    Change-Id: I1831d8b19ed8e1bea09035a8facdf61d3af25187
---
 gnu/packages/prometheus.scm | 56 ---------------------------------------------
 1 file changed, 56 deletions(-)

diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm
index 4541eaec9f..8bae251c3a 100644
--- a/gnu/packages/prometheus.scm
+++ b/gnu/packages/prometheus.scm
@@ -355,62 +355,6 @@ metrics.")
      "This package provides Prometheus assets.")
     (license license:asl2.0)))
 
-(define-public go-github-com-prometheus-common-sigv4
-  (package
-    (name "go-github-com-prometheus-common-sigv4")
-    (version "0.1.0")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/prometheus/common";)
-             (commit (go-version->git-ref version
-                                          #:subdir "sigv4"))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32 "08sdhxryl1jpy829qki8k2jy773xhrbr9wsk997pxhbbvl634gvb"))
-       (modules '((guix build utils)
-                  (ice-9 ftw)
-                  (srfi srfi-26)))
-       (snippet
-        #~(begin
-            ;; XXX: 'delete-all-but' is copied from the turbovnc package.
-            ;; Consider to implement it as re-usable procedure in
-            ;; guix/build/utils or guix/build-system/go.
-            (define (delete-all-but directory . preserve)
-              (define (directory? x)
-                (and=> (stat x #f)
-                       (compose (cut eq? 'directory <>) stat:type)))
-              (with-directory-excursion directory
-                (let* ((pred
-                        (negate (cut member <> (append '("." "..") preserve))))
-                       (items (scandir "." pred)))
-                  (for-each (lambda (item)
-                              (if (directory? item)
-                                  (delete-file-recursively item)
-                                  (delete-file item)))
-                            items))))
-            (delete-all-but "." "sigv4")))))
-    (build-system go-build-system)
-    (arguments
-     (list
-      #:import-path "github.com/prometheus/common/sigv4"
-      #:unpack-path "github.com/prometheus/common"))
-    (native-inputs
-     (list go-github-com-stretchr-testify))
-    (propagated-inputs
-     (list go-github-com-aws-aws-sdk-go
-           go-github-com-prometheus-client-golang
-           go-github-com-prometheus-common
-           go-gopkg-in-yaml-v2))
-    (home-page "https://github.com/prometheus/common";)
-    (synopsis "HTTP signed requests with Amazon's Signature Verification V4")
-    (description
-     "This package provides a @code{http.RoundTripper} that will sign requests
-using Amazon's Signature Verification V4 signing procedure, using credentials
-from the default AWS credential chain.")
-    (license license:asl2.0)))
-
 (define-public go-github-com-prometheus-community-pro-bing
   (package
     (name "go-github-com-prometheus-community-pro-bing")

Reply via email to