mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-honnef-co-go-tools: Enable tests.
* gnu/packages/golang-check.scm (go-honnef-co-go-tools): Apply new package style. [arguments]: <#:phases>: Use custom 'check phase. Change-Id: Idecf23f79ea554a84bce57a4dd356dde5f0b300a
This commit is contained in:
parent
59b22fbe0e
commit
39b908a389
1 changed files with 11 additions and 5 deletions
|
@ -1336,11 +1336,17 @@ built-in @code{testing} package, but can be used in other contexts too.")
|
||||||
"1n58skq2a0vhsgdfdkyqi00d3vv13kiw9b4mxx6xfyb6ysrdy7d1"))))
|
"1n58skq2a0vhsgdfdkyqi00d3vv13kiw9b4mxx6xfyb6ysrdy7d1"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:import-path "honnef.co/go/tools"
|
(list
|
||||||
#:tests? #f
|
#:import-path "honnef.co/go/tools"
|
||||||
;; Source-only package
|
#:phases
|
||||||
#:phases (modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(delete 'build))))
|
;; 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" "./..."))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-burntsushi-toml
|
(list go-github-com-burntsushi-toml
|
||||||
go-golang-org-x-exp-typeparams
|
go-golang-org-x-exp-typeparams
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue