From 5c38a271160bd812c030c1f440518ccc4ef871f5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 13:38:34 +0000 Subject: [PATCH] gnu: go-github-com-aws-aws-sdk-go-v2-credentials: Update to 1.17.48. * gnu/packages/golang-web.scm (go-github-com-aws-aws-sdk-go-v2-credentials): Update to 1.17.48. [arguments] : Ass 'fix-tests. Change-Id: I267ef898ad79512eddbcac0cd66419c693a1094a --- gnu/packages/golang-web.scm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index bf19459c2b..99caefc72d 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -527,21 +527,29 @@ (define-public go-github-com-aws-aws-sdk-go-v2-config (define-public go-github-com-aws-aws-sdk-go-v2-credentials (package (name "go-github-com-aws-aws-sdk-go-v2-credentials") - (version "1.17.27") + (version "1.17.48") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/aws/aws-sdk-go-v2") - (commit (string-append "credentials/v" version)))) + (commit (go-version->git-ref version + #:subdir "credentials")))) (file-name (git-file-name name version)) (sha256 - (base32 "0jdj7wim98g80hjbw3av7ffrr3dqxzbygprmhjs0cxc16cw62wj7")))) + (base32 "1n3spqncpw6w11pwkqaiq7jyv6dv0229jsbshibg24l2g3accdqi")))) (build-system go-build-system) (arguments (list #:import-path "github.com/aws/aws-sdk-go-v2/credentials" - #:unpack-path "github.com/aws/aws-sdk-go-v2")) + #:unpack-path "github.com/aws/aws-sdk-go-v2" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* (find-files "." "test\\.go") + (("/bin/sleep") (which "sleep"))))))))) (propagated-inputs (list go-github-com-google-go-cmp go-github-com-aws-smithy-go))