[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/32: gnu: go-github-com-spf13-afero: Run all tests.
From: |
guix-commits |
Subject: |
13/32: gnu: go-github-com-spf13-afero: Run all tests. |
Date: |
Sun, 24 Nov 2024 07:50:51 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit ff14292ff722e1839da198f5295b1d81cf9e206f
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Nov 24 11:14:38 2024 +0000
gnu: go-github-com-spf13-afero: Run all tests.
* gnu/packages/golang-xyz.scm (go-github-com-spf13-afero): Enable all
tests from subdirectories.
[arguments]<phases>: Use custom 'check.
Change-Id: Iada2f737c19c6fe18038da56c316717e6e0ce3ac
---
gnu/packages/golang-xyz.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 2299891736..fc17222cbe 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6880,7 +6880,15 @@ Use waterutil with it to work with TUN/TAP
packets/frames.")
(build-system go-build-system)
(arguments
(list
- #:import-path "github.com/spf13/afero"))
+ #:import-path "github.com/spf13/afero"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; 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-pkg-sftp
go-golang-org-x-text))
- 07/32: gnu: go-github-com-cyphar-filepath-securejoin: Update to 0.3.4., (continued)
- 07/32: gnu: go-github-com-cyphar-filepath-securejoin: Update to 0.3.4., guix-commits, 2024/11/24
- 05/32: gnu: go-github-com-kylelemons-godebug: Improve style., guix-commits, 2024/11/24
- 06/32: gnu: go-github-com-kylelemons-godebug: Move to golang-xyz., guix-commits, 2024/11/24
- 11/32: gnu: go-github-com-spf13-viper: Update to 1.8.1., guix-commits, 2024/11/24
- 08/32: gnu: go-github-com-spf13-afero: Update to 1.6.0., guix-commits, 2024/11/24
- 09/32: gnu: go-github-com-spf13-cast: Update to 1.7.0., guix-commits, 2024/11/24
- 14/32: gnu: go-github-com-spf13-cast: Move to golang-xyz., guix-commits, 2024/11/24
- 17/32: gnu: go-github-com-spf13-pflag: Move to golang-xyz., guix-commits, 2024/11/24
- 19/32: gnu: go-github-com-nxadm-tail: Update to 1.4.11., guix-commits, 2024/11/24
- 32/32: gnu: packages/textutils: Remove golang module., guix-commits, 2024/11/24
- 13/32: gnu: go-github-com-spf13-afero: Run all tests.,
guix-commits <=
- 02/32: gnu: Remove go-github-com-dustin-gojson., guix-commits, 2024/11/24
- 10/32: gnu: go-github-com-spf13-pflag: Add a maintenance note., guix-commits, 2024/11/24
- 12/32: gnu: go-github-com-spf13-afero: Move to golang-xyz., guix-commits, 2024/11/24
- 20/32: gnu: go-github-com-nxadm-tail: Move to golang-xyz., guix-commits, 2024/11/24
- 21/32: gnu: go-github-com-twpayne-go-vfs: Update to 5.0.4., guix-commits, 2024/11/24
- 22/32: gnu: go-github-com-twpayne-go-vfs: Move to golang-xyz., guix-commits, 2024/11/24
- 18/32: gnu: go-github-com-spf13-viper: Move to golang-xyz., guix-commits, 2024/11/24
- 26/32: gnu: go-github-com-bmatcuk-doublestar-v4: Update to 4.7.1., guix-commits, 2024/11/24
- 25/32: gnu: go-github-com-bmatcuk-doublestar-v3: Enable tests., guix-commits, 2024/11/24
- 28/32: gnu: go-github-com-mitchellh-mapstructure: Move to golang-xyz., guix-commits, 2024/11/24