gnu: go-github-com-rogpeppe-go-internal: Simplify

* gnu/packages/golang-xyz.scm (go-github-com-rogpeppe-go-internal):
[arguments] <skip-build?>: Set to #t, as no go files in project's root.
<test-flags>: Apply skip test logic here.
<phases>: Remove 'disable-failing-tests, use default 'check.

Change-Id: I4fd9e76205645faee0208ca16bd0315b148a2d7c
This commit is contained in:
Sharlatan Hellseher 2024-12-21 23:10:50 +00:00
parent 5d1b986635
commit 9417597eac
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -8489,21 +8489,9 @@ (define-public go-github-com-rogpeppe-go-internal
(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