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

commit 4cae4a5f993e9c549f25d83ca1101e68701e6dc2
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Oct 9 20:27:49 2025 +0100

    gnu: go-github-com-shurcool-httpfs: Fix tests.
    
    * gnu/packages/golang-web.scm (go-github-com-shurcool-httpfs): Simplify
    package by using arguments parameters instead of manipulating phases.
    [arguments] <skip-build?>: No go code in project's root.
    <phases>: Use default 'check.
    [native-inputs]: Remove go-golang-org-x-tools; add
    go-golang-org-x-tools-godoc.
    
    Change-Id: I84bcd4deac9ae38cddd36cc564f52bd640cf1d61
---
 gnu/packages/golang-web.scm | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index a34aef9e6c..9da9f1cbe5 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -10249,26 +10249,18 @@ API v4.")
      (origin
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/shurcooL/httpfs";)
-             (commit (go-version->git-ref version))))
+              (url "https://github.com/shurcooL/httpfs";)
+              (commit (go-version->git-ref version))))
        (file-name (git-file-name name version))
        (sha256
         (base32 "1m0jjnfzr8372cjx0zjm2zm695kwaz8l1yk7gzgn05biadsklprm"))))
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/shurcooL/httpfs"
-      #:phases
-      #~(modify-phases %standard-phases
-          ;; XXX: Replace when go-build-system supports nested path.
-          (delete 'build)
-          (replace 'check
-            (lambda* (#:key import-path tests? #:allow-other-keys)
-              (when tests?
-                (with-directory-excursion (string-append "src/" import-path)
-                  (invoke "go" "test" "-v" "./..."))))))))
+      #:skip-build? #t
+      #:import-path "github.com/shurcooL/httpfs"))
     (native-inputs
-     (list go-golang-org-x-tools))
+     (list go-golang-org-x-tools-godoc))
     (propagated-inputs
      (list go-github-com-shurcool-httpgzip))
     (home-page "https://github.com/shurcooL/httpfs";)

Reply via email to