From 15cf77dc917ddc5c4d3a18530be8c63e7fcb806f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Oct 2025 20:27:49 +0100 Subject: [PATCH] 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] : No go code in project's root. : 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 eb80056052c26d03501a880d6cc6af3e3bf1ecf9..b6c50843f3f0d9bb7f5d40e442cb83f5a878f1fc 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -10310,26 +10310,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")