guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 63f29e08c83117ed8ef0f38cd566275f49de3401
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Nov 30 21:14:54 2025 +0000

    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] <phases>: 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 3db2e98d10..dad6e68ec4 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

Reply via email to