gnu: go-golang-org-x-vuln: Simplify.

* gnu/packages/golang-build.scm (go-golang-org-x-vuln):
[arguments] <skip-build?>: Set to #t, as no go files in project's root.
<test-flags>: Skip 3 tests.
<test-subdirs>: Select them here.
<phases>: Use default 'check.

Change-Id: I7e6860f63c559813055cc5383b6f608855a9490d
This commit is contained in:
Sharlatan Hellseher 2024-12-20 00:28:15 +00:00
parent dd4ee37f9a
commit 2cf9fb3bf7
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1090,19 +1090,14 @@ Go programming language.")
(build-system go-build-system)
(arguments
(list
#:skip-build? #t
#:import-path "golang.org/x/vuln"
#:phases
#~(modify-phases %standard-phases
;; XXX: Workaround for go-build-system's lack of Go modules support.
(delete 'build)
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v"
"./doc/..."
"./internal/..."
"./scan/..."))))))))
;; ts.RunParallel undefined (type *cmdtest.TestSuite has no field or
;; method RunParallel)
;;
;; go: modules disabled by GO111MODULE=off
#:test-flags #~(list "-skip" "TestVet|TestGoModTidy|Test58509")
#:test-subdirs #~(list "internal/..." "scan/..." ".")))
(propagated-inputs
(list go-github-com-google-go-cmdtest
go-github-com-google-go-cmp