mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 23:06:59 +01:00
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:
parent
5d1b986635
commit
9417597eac
1 changed files with 2 additions and 14 deletions
|
@ -8489,21 +8489,9 @@ (define-public go-github-com-rogpeppe-go-internal
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:skip-build? #t
|
||||||
#:import-path "github.com/rogpeppe/go-internal"
|
#:import-path "github.com/rogpeppe/go-internal"
|
||||||
#:phases
|
#:test-flags #~(list "-skip" "TestSimple/cover")))
|
||||||
#~(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" "./..."))))))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-golang-org-x-mod
|
(list go-golang-org-x-mod
|
||||||
go-golang-org-x-sys
|
go-golang-org-x-sys
|
||||||
|
|
Loading…
Reference in a new issue