M gnu/packages/golang-check.scm => gnu/packages/golang-check.scm +19 -5
@@ 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