mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 13:09:23 -05:00
gnu: go-golang-org-x-sync: Enable tests.
* gnu/packages/golang-build.scm (go-golang-org-x-sync): Refresh package style. [arguments]: <#:phases>: Add custom 'check phase. Change-Id: Ibee36b53934faed80561d461090cfcfea32b5bfa
This commit is contained in:
parent
afbc1cc8b3
commit
16cf2fea8d
1 changed files with 12 additions and 5 deletions
|
@ -281,11 +281,18 @@ (define-public go-golang-org-x-sync
|
||||||
(base32 "07qrhni6f5hh5p95k1yk6s4wsj341q663irvx6rllrxfsymj6a0z"))))
|
(base32 "07qrhni6f5hh5p95k1yk6s4wsj341q663irvx6rllrxfsymj6a0z"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:import-path "golang.org/x/sync"
|
(list
|
||||||
#:tests? #f
|
#:import-path "golang.org/x/sync"
|
||||||
;; 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" "./..."))))))))
|
||||||
(home-page "https://go.googlesource.com/sync/")
|
(home-page "https://go.googlesource.com/sync/")
|
||||||
(synopsis "Additional Go concurrency primitives")
|
(synopsis "Additional Go concurrency primitives")
|
||||||
(description "This package provides Go concurrency primitives in
|
(description "This package provides Go concurrency primitives in
|
||||||
|
|
Loading…
Reference in a new issue