From 63f29e08c83117ed8ef0f38cd566275f49de3401 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 30 Nov 2025 21:14:54 +0000 Subject: [PATCH] gnu: go-gopkg-in-dnaeon-go-vcr-v4: Update to 4.0.6. * gnu/packages/golang-check.scm (go-gopkg-in-dnaeon-go-vcr-v4): Update to 4.0.6. [source]: Switch from gopkg.in to github.com source location. [arguments] : Add 'make-test-file-writable, and 'remove-examples. [propagated-inputs]: Add go-go-yaml-in-yaml-v4. Change-Id: I58acb324551cb4250c24bf63eb0b9aaf38ff0924 --- gnu/packages/golang-check.scm | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 3db2e98d10e93f9c8d6e00a8ade567e9f8de4b2f..dad6e68ec4c33fdf8ac1f09412592b718c7bcdba 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -3124,20 +3124,34 @@ the source code, it only prints out style mistakes.") (package (inherit go-gopkg-in-dnaeon-go-vcr-v3) (name "go-gopkg-in-dnaeon-go-vcr-v4") - (version "4.0.2") + (version "4.0.6") (source (origin (method git-fetch) (uri (git-reference - (url "https://gopkg.in/dnaeon/go-vcr.v4") - (commit (string-append "v" version)))) + (url "https://github.com/dnaeon/go-vcr") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1p1a4hbk303k2bv9dmaf770dml71zr3260g5z7yd84vzhj8i0rzb")))) + (base32 "10zgsiaibdr6lc8bn5hl2qbqgakg8vmvc3l2v8pc8p2b5hjp3vqp")))) (arguments (list #:skip-build? #t - #:import-path "gopkg.in/dnaeon/go-vcr.v4")))) + #:import-path "gopkg.in/dnaeon/go-vcr.v4" + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'make-test-file-writable + (lambda* (#:key import-path #:allow-other-keys) + ;; Tests write to the file: middleware_test.go:42: open + ;; testdata/middleware.yaml: permission denied + (with-directory-excursion (string-append "src/" import-path) + (make-file-writable "examples/testdata/middleware.yaml")))) + (add-after 'check 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))) + (propagated-inputs + (list go-go-yaml-in-yaml-v4)))) (define-public go-gopkg-in-go-playground-assert-v1 (package