sharlatan pushed a commit to branch go-team
in repository guix.
commit fdcdd5288ff851acfda08e9a3e718ee27c77961a
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Dec 20 00:28:15 2024 +0000
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
---
gnu/packages/golang-build.scm | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index 36bda3d48c..b20437fa8d 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -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