diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-07-12 15:10:47 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-07-15 12:17:50 +0100 |
commit | d76e297b66bcd361ccae39f900c4b3261884d307 (patch) | |
tree | 5a61a06897b7de6c3fd5bdef3a3cf831848ff374 /gnu/packages/golang-build.scm | |
parent | b8aab45d78b6313b662f6d05f06b2c82e118959c (diff) | |
download | guix-d76e297b66bcd361ccae39f900c4b3261884d307.tar guix-d76e297b66bcd361ccae39f900c4b3261884d307.tar.gz |
gnu: go-golang-org-x-time: Enable tests.
* gnu/packages/golang-build.scm (go-golang-org-x-time): Apply new
package style.
[arguments]: <#:phases>: Use custom 'check phase.
Change-Id: If6b9aa9198748c4b8a2fdc23cd723aec740eb533
Diffstat (limited to 'gnu/packages/golang-build.scm')
-rw-r--r-- | gnu/packages/golang-build.scm | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 309c56c06a..2bb2e62450 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -547,13 +547,18 @@ processing.") (base32 "1dahq0p6zn2pd408q6hsv1jl12nqrwd1gkl3r3dysk2q0z16192v")))) (build-system go-build-system) (arguments - `(#:import-path "golang.org/x/time" - ;; Source-only package - #:tests? #f - #:phases - (modify-phases %standard-phases - ;; Source-only package - (delete 'build)))) + (list + #:import-path "golang.org/x/time" + #: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" "./...")))))))) (home-page "https://godoc.org/golang.org/x/time/rate") (synopsis "Supplemental Go time libraries") (description |