mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
dd4ee37f9a
commit
2cf9fb3bf7
1 changed files with 7 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue