[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23/76: gnu: go-golang-org-x-text: Enable tests.
From: |
guix-commits |
Subject: |
23/76: gnu: go-golang-org-x-text: Enable tests. |
Date: |
Mon, 15 Jul 2024 07:19:44 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit e0ca0978c8ffdb9e8954a82d7a18945bd359e823
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Jul 12 15:03:34 2024 +0100
gnu: go-golang-org-x-text: Enable tests.
* gnu/packages/golang-build.scm (go-golang-org-x-text): Enable tests.
[source]: Adjust FILE-NAME.
[arguments]: <#:phases>: Use custom 'check phase.
[description]: Place on a new line.
Change-Id: I1f72a418d60c92c3663bcc6603e705f8a715370a
---
gnu/packages/golang-build.scm | 41 ++++++++++++++++++++++++++++++++---------
1 file changed, 32 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index a0f7008bd0..487dc00ccb 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -491,21 +491,44 @@ terminals, as commonly found on Unix systems.")
(uri (git-reference
(url "https://go.googlesource.com/text")
(commit (string-append "v" version))))
- (file-name (string-append "go.googlesource.com-text-"
- version "-checkout"))
+ (file-name (git-file-name name version))
(sha256
(base32 "0pmn0i1xbpwvzl4cdgmjqcsk9vckhqrq6699fnr9mkglh4xj3p7a"))))
(build-system go-build-system)
(arguments
- `(#:import-path "golang.org/x/text"
- ;; Source-only package
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (delete 'build))))
+ (list
+ #:import-path "golang.org/x/text"
+ #: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"
+ "./cases/..."
+ ;; cmd - cycle with go-golang-org-x-tools
+ "./collate/..."
+ "./currency/..."
+ "./date/..."
+ "./encoding/..."
+ "./feature/..."
+ "./internal/..."
+ "./language/..."
+ ;; message - cycle with go-golang-org-x-tools
+ "./number/..."
+ "./runes/..."
+ "./search/..."
+ "./secure/..."
+ "./transform/..."
+ "./unicode/..."
+ "./width/..."))))))))
(home-page "https://go.googlesource.com/text")
(synopsis "Supplemental Go text processing libraries")
- (description "This package provides supplemental Go libraries for text
+ (description
+ "This package provides supplemental Go libraries for text
processing.")
(license license:bsd-3)))
- 58/76: gnu: go-github-com-dhowett-go-plist: Rename variable., (continued)
- 58/76: gnu: go-github-com-dhowett-go-plist: Rename variable., guix-commits, 2024/07/15
- 59/76: gnu: go-github-com-twpayne-go-xdg: Rename variable., guix-commits, 2024/07/15
- 69/76: gnu: demlo: Update to 3.8-1.985f810., guix-commits, 2024/07/15
- 62/76: gnu: chezmoi: Fix build., guix-commits, 2024/07/15
- 67/76: gnu: go-pgregory-net-rapid: Use go-1.18., guix-commits, 2024/07/15
- 72/76: gnu: Remove go-github-com-go-libsecret., guix-commits, 2024/07/15
- 38/76: gnu: Add go-github-com-go-jose-go-jose-v4., guix-commits, 2024/07/15
- 39/76: gnu: Add go-github-com-yuin-goldmark-emoji., guix-commits, 2024/07/15
- 01/76: gnu: go-github-com-yuin-goldmark: Update to 1.7.4., guix-commits, 2024/07/15
- 13/76: gnu: go-golang-org-x-mod: Fix indentation., guix-commits, 2024/07/15
- 23/76: gnu: go-golang-org-x-text: Enable tests.,
guix-commits <=
- 37/76: gnu: go-github-com-go-jose-go-jose-v3: Update to 3.0.3., guix-commits, 2024/07/15
- 43/76: gnu: go-github-com-charmbracelet-glamour: Update to 0.7.0., guix-commits, 2024/07/15
- 45/76: gnu: Add go-c2sp-org-cctv-age., guix-commits, 2024/07/15
- 47/76: gnu: age: Remove some failing test data., guix-commits, 2024/07/15
- 48/76: gnu: go-honnef-co-go-tools: Update to 0.4.7., guix-commits, 2024/07/15
- 53/76: gnu: gopls: Update to 0.13.2., guix-commits, 2024/07/15
- 57/76: gnu: go-github-com-dhowett-go-plist: Improve package style., guix-commits, 2024/07/15
- 60/76: gnu: go-github-com-google-go-github: Adjust inputs., guix-commits, 2024/07/15
- 61/76: gnu: go-github-com-zalando-go-keyring: Adjust inputs., guix-commits, 2024/07/15
- 63/76: gnu: go-github-com-alecthomas-template: Use go-1.17., guix-commits, 2024/07/15