gnu: go-golang-org-x-time: Simplify.

* gnu/packages/golang-build.scm (go-golang-org-x-time):
[arguments] <skip-build?>: Set to #t, as no go files in project's root.
<phases>: Use default 'check.

Change-Id: I533cc20e9ba1be1ee754dd7fa36b9547d4bda9b6
This commit is contained in:
Sharlatan Hellseher 2024-12-19 23:51:18 +00:00
parent 3dd482af7b
commit 73979b7e76
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -969,17 +969,8 @@ processing.")
(build-system go-build-system)
(arguments
(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" "./..."))))))))
#:skip-build? #t
#:import-path "golang.org/x/time"))
(home-page "https://godoc.org/golang.org/x/time/rate")
(synopsis "Supplemental Go time libraries")
(description