guix_mirror_bot pushed a commit to branch master
in repository guix.

commit ec98cba5891b29fdf57fd5ae12b5404ad2b096e8
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Sep 5 15:42:51 2026 +0100

    gnu: go-github-com-prometheus-client-golang: Update to 1.24.1.
    
    * gnu/packages/prometheus.scm (go-github-com-prometheus-client-golang): 
Update to 1.24.1.
    [arguments] <go>: Use default go-1.26.
    <test-flags>: Skip 3 more tests.
    [phases]{pre-check}: New phase.
---
 gnu/packages/prometheus.scm | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm
index 1076ee534ae..d8031377909 100644
--- a/gnu/packages/prometheus.scm
+++ b/gnu/packages/prometheus.scm
@@ -337,7 +337,7 @@ and inhibition of alerts.")
 (define-public go-github-com-prometheus-client-golang
   (package
     (name "go-github-com-prometheus-client-golang")
-    (version "1.23.2")
+    (version "1.24.1")
     (source
      (origin
        (method git-fetch)
@@ -346,11 +346,10 @@ and inhibition of alerts.")
               (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "054hdlyjkyna1xx39apl7srzvjsyirnn1ihbaqarxbygdrz3zrx1"))))
+        (base32 "1dizf62jvv0bpdbmz80zjinic8bxvqv8yzjfj07dw90gjmmfq6p7"))))
     (build-system go-build-system)
     (arguments
      (list
-      #:go go-1.24
       #:skip-build? #t
       ;; XXX: Check if the most of the tests may be enabled:
       ;; api/prometheus/v1/api_test.go:1063:23: cannot use 1634644800304
@@ -361,9 +360,11 @@ and inhibition of alerts.")
       #~(list "-skip"
               (string-join
                (list
-                ;; go_collector_latest_test.go:131: found unexpected metric
-                ;; 
go_godebug_non_default_behavior_httpcookiemaxnum_events_total
+                ;; Tests failing with similar errors: Found unexpected metric.
                 "TestGoCollector_ExposedMetrics"
+                "TestHandlerWithEmojiUnit"
+                "TestHandlerWithLongUnit"
+                "TestHandlerWithUnit"
                 ;; Tests fail with message: found new runtime/metrics
                 ;; metric
                 ;; /godebug/non-default-behavior/httpcookiemaxnum:events
@@ -387,7 +388,11 @@ and inhibition of alerts.")
                 (for-each delete-file-recursively
                           (list "api/prometheus/v1/example_test.go"
                                 "examples"
-                                "tutorials"))))))))
+                                "tutorials")))))
+          (add-before 'check 'pre-check
+            (lambda* (#:key tests? #:allow-other-keys)
+              ;; See: <https://go.dev/blog/synctest>.
+              (setenv "GODEBUG" "asynctimerchan=0"))))))
     (native-inputs
      (list go-github-com-google-go-cmp
            go-go-uber-org-goleak))

Reply via email to