mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-05 10:56:56 -05:00
gnu: go-golang-org-x-net: Enable tests.
* gnu/packages/golang-build.scm (go-golang-org-x-net): Enable tests. [arguments]: <#:phases>: Use custom 'check phase. [propagated-inputs]: Add go-golang-org-x-crypto. Change-Id: I632cdc7541bde898214aa006434fa96a5050fa62
This commit is contained in:
parent
8aa11899bd
commit
6be3cbad13
1 changed files with 12 additions and 5 deletions
|
@ -307,14 +307,21 @@ (define-public go-golang-org-x-net
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "golang.org/x/net"
|
#:import-path "golang.org/x/net"
|
||||||
;; Source-only package
|
|
||||||
#:tests? #f
|
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
;; Source-only package
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
||||||
(delete 'build))))
|
;; 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-golang-org-x-sys go-golang-org-x-term go-golang-org-x-text))
|
(list go-golang-org-x-crypto
|
||||||
|
go-golang-org-x-sys
|
||||||
|
go-golang-org-x-term
|
||||||
|
go-golang-org-x-text))
|
||||||
(home-page "https://go.googlesource.com/net")
|
(home-page "https://go.googlesource.com/net")
|
||||||
(synopsis "Go supplemental networking libraries")
|
(synopsis "Go supplemental networking libraries")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue