From a00d0551fd09bd57f39e01647902838d1792b08e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 23:10:50 +0000 Subject: [PATCH] gnu: go-github-com-rogpeppe-go-internal: Simplify * gnu/packages/golang-xyz.scm (go-github-com-rogpeppe-go-internal): [arguments] : Set to #t, as no go files in project's root. : Apply skip test logic here. : Remove 'disable-failing-tests, use default 'check. Change-Id: I4fd9e76205645faee0208ca16bd0315b148a2d7c --- gnu/packages/golang-xyz.scm | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index cdc8fb51a4..9a05d03a59 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8489,21 +8489,9 @@ strings.") (build-system go-build-system) (arguments (list + #:skip-build? #t #:import-path "github.com/rogpeppe/go-internal" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* (find-files "." "\\_test.go$") - (("TestSimple") "OffTestSimple"))))) - ;; 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" "./...")))))))) + #:test-flags #~(list "-skip" "TestSimple/cover"))) (propagated-inputs (list go-golang-org-x-mod go-golang-org-x-sys