guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/74: gnu: go-github-com-coreos-go-oidc-v3: Update to 3.11.0.


From: guix-commits
Subject: 04/74: gnu: go-github-com-coreos-go-oidc-v3: Update to 3.11.0.
Date: Thu, 25 Jul 2024 18:02:19 -0400 (EDT)

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

commit 123dcb2f319126dc5314a440e07226bf9feb54c3
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Mon Jul 15 15:53:27 2024 +0100

    gnu: go-github-com-coreos-go-oidc-v3: Update to 3.11.0.
    
    * gnu/packages/golang-web.scm (go-github-com-coreos-go-oidc-v3): Update to 
3.11.0.
    [arguments]: <#:unpack-path>: Remove it. <#:import-path>: Adjust to
    reflect go.mod module path.
    <#:phases>: Remove 'build phase. Use custom 'check.
    [propagated-inputs]: Remove go-github-com-go-jose-go-jose-v3; add
    go-github-com-go-jose-go-jose-v4 and go-golang-org-x-net.
    
    Change-Id: Ibda17bed6eff43b1006199f4f5b3433ee922184f
---
 gnu/packages/golang-web.scm | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index a9213f1be8..a21339adb2 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -633,7 +633,7 @@ and stop increasing when a certain threshold is met.")
   (package
     (inherit go-github-com-coreos-go-oidc)
     (name "go-github-com-coreos-go-oidc-v3")
-    (version "3.6.0")
+    (version "3.11.0")
     (source
      (origin
        (method git-fetch)
@@ -642,13 +642,23 @@ and stop increasing when a certain threshold is met.")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1sbm6n3lp48lymn0g921afhq2j6inb38w3wy5rhyx9h8gpzhnxx9"))))
+        (base32 "00nbv15pjfcfxdy0i4k366ricdm2cylhpwak3hmjlgh6lrzxypl9"))))
     (arguments
-     (list ;; no Go files in [...]/src/github.com/coreos/go-oidc/v3.
-      #:import-path "github.com/coreos/go-oidc/v3/oidc"
-      #:unpack-path "github.com/coreos/go-oidc/v3"))
+     (list
+      #:import-path "github.com/coreos/go-oidc/v3"
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; XXX: Workaround for go-build-system's lack of Go modules
+          ;; support.
+          (delete 'build)
+          (replace 'check
+            (lambda* (#:key tests? import-path #:allow-other-keys)
+              (when tests?
+                (with-directory-excursion (string-append "src/" import-path)
+                  (invoke "go" "test" "-v" "./..."))))))))
     (propagated-inputs
-     (list go-github-com-go-jose-go-jose-v3
+     (list go-github-com-go-jose-go-jose-v4
+           go-golang-org-x-net
            go-golang-org-x-oauth2))))
 
 (define-public go-github-com-emicklei-go-restful



reply via email to

[Prev in Thread] Current Thread [Next in Thread]