From 123dcb2f319126dc5314a440e07226bf9feb54c3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 15 Jul 2024 15:53:27 +0100 Subject: 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(-) (limited to 'gnu/packages') 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 -- cgit v1.2.3