[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/22: gnu: go-github-com-alecthomas-chroma-v2: Enable all tests.
From: |
guix-commits |
Subject: |
02/22: gnu: go-github-com-alecthomas-chroma-v2: Enable all tests. |
Date: |
Sun, 7 Jul 2024 11:10:39 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit b5696b91a28e19a6cb0833ddc6bb07ea5a59e8e0
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Jul 5 12:06:40 2024 +0100
gnu: go-github-com-alecthomas-chroma-v2: Enable all tests.
* gnu/packages/golang-xyz.scm (go-github-com-alecthomas-chroma-v2)
[arguments]: <#:go>: Use go-1.19. <#:phases>: Add
'remove-failing-tetdata-and-cmd-files. Use custom 'check phase.
Change-Id: I76a8fcc8089f55e6645762c49c61219520147281
---
gnu/packages/golang-xyz.scm | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index c40d376685..b30a35506a 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -484,8 +484,24 @@ syntax highlighted HTML, ANSI-coloured text, etc.")
(sha256
(base32 "1qgr4gywjks869sc85wb8nby612b8wvsa1dwpsbanjsljq7wq7mp"))))
(arguments
- (list #:go go-1.19
- #:import-path "github.com/alecthomas/chroma/v2"))
+ (list
+ #:go go-1.19
+ #:import-path "github.com/alecthomas/chroma/v2"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-failing-testdata-and-cmd-files
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (for-each delete-file-recursively
+ (list
"lexers/testdata/python2/test_complex_file1.actual"
+ ;; Executible is packed as separate package.
+ "cmd")))))
+ ;; XXX: Replace when go-build-system supports nested path.
+ (replace 'check
+ (lambda* (#:key import-path tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
(list go-github-com-dlclark-regexp2))
(native-inputs
- branch master updated (c86a07bacc -> 5217ea6d45), guix-commits, 2024/07/07
- 03/22: gnu: go-github-com-alecthomas-assert-v2: Update to 2.10.0., guix-commits, 2024/07/07
- 01/22: gnu: go-github-com-alecthomas-chroma-v2: Update to 2.14.0., guix-commits, 2024/07/07
- 04/22: gnu: go-github-com-alecthomas-repr: Update to 0.4.0., guix-commits, 2024/07/07
- 02/22: gnu: go-github-com-alecthomas-chroma-v2: Enable all tests.,
guix-commits <=
- 05/22: gnu: go-github-com-alecthomas-repr: Move to golang-xyz., guix-commits, 2024/07/07
- 08/22: gnu: Add go-chroma., guix-commits, 2024/07/07
- 07/22: gnu: Add go-github-com-alecthomas-kong., guix-commits, 2024/07/07
- 06/22: gnu: go-github-com-alecthomas-colour: Move to golang-xyz., guix-commits, 2024/07/07
- 10/22: gnu: go-github-com-goccy-go-yaml: Move to golang-xyz., guix-commits, 2024/07/07
- 21/22: gnu: Add go-github-com-whyrusleeping-cbor., guix-commits, 2024/07/07
- 14/22: gnu: Add go-github-com-ipfs-go-ipld-cbor., guix-commits, 2024/07/07
- 19/22: gnu: Add go-github-com-whyrusleeping-go-keyspace., guix-commits, 2024/07/07
- 09/22: gnu: go-github-com-goccy-yaml: Rename variable., guix-commits, 2024/07/07
- 15/22: gnu: Add go-github-com-facebookgo-atomicfile., guix-commits, 2024/07/07