guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

21/32: gnu: go-github-com-twpayne-go-vfs: Update to 5.0.4.


From: guix-commits
Subject: 21/32: gnu: go-github-com-twpayne-go-vfs: Update to 5.0.4.
Date: Sun, 24 Nov 2024 07:50:53 -0500 (EST)

sharlatan pushed a commit to branch go-team
in repository guix.

commit 41c17ab8b1c98412661ba6b77c2811e96bdd0db7
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Nov 24 12:04:01 2024 +0000

    gnu: go-github-com-twpayne-go-vfs: Update to 5.0.4.
    
    * gnu/packages/golang.scm (go-github-com-twpayne-go-vfs): Update to 5.0.4.
    [arguments]<phases>: Use custom 'check.
    [native-inputs]: Remove go-github-com-bmatcuk-doublestar and
    go-github-com-stretchr-testify; add
    go-github-com-alecthomas-assert-v2.
    
    Change-Id: I3714118169840883aa5d896d72ba03891bf6d421
---
 gnu/packages/golang.scm | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 49387cb206..f8c69ba6ff 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5923,7 +5923,7 @@ temporal directories.")
 (define-public go-github-com-twpayne-go-vfs
   (package
     (name "go-github-com-twpayne-go-vfs")
-    (version "1.5.0")
+    (version "5.0.4")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -5932,13 +5932,21 @@ temporal directories.")
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "19dm3gi45znwaqbzxhwcgkiz8059bwa3ank80hc6qhdl579bpjnz"))))
+                "152hbb6ww2f2ac2bf1d446vw8z8m22n1rsa7gvlzfa060vj9hjgx"))))
     (build-system go-build-system)
     (arguments
-     `(#:import-path "github.com/twpayne/go-vfs"))
+     (list
+      #:import-path "github.com/twpayne/go-vfs"
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; XXX: Replace when go-build-system supports nested path.
+          (replace 'check
+            (lambda* (#:key import-path tests? #:allow-other-keys)
+              (when tests?
+                (with-directory-excursion (string-append "src/" import-path)
+                  (invoke "go" "test" "-v" "./..."))))))))
     (native-inputs
-     (list go-github-com-bmatcuk-doublestar
-           go-github-com-stretchr-testify))
+     (list go-github-com-alecthomas-assert-v2))
     (home-page "https://github.com/twpayne/go-vfs/";)
     (synopsis "Abstraction of the @code{os} and @code{ioutil} Go packages")
     (description "Package @code{vfs} provides an abstraction of the @code{os}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]