[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/18: gnu: go-github-com-mitchellh-go-homedir: Enable tests.
From: |
guix-commits |
Subject: |
10/18: gnu: go-github-com-mitchellh-go-homedir: Enable tests. |
Date: |
Tue, 26 May 2020 02:54:56 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 369aab196d6df12fe6552ad84fcd2db80be0fcbe
Author: Efraim Flashner <address@hidden>
AuthorDate: Mon May 25 21:18:17 2020 +0300
gnu: go-github-com-mitchellh-go-homedir: Enable tests.
* gnu/packages/golang.scm (go-github-com-mitchellh-go-homedir)
[arguments]: Enable tests. Add custom phase to set HOME environment
variable.
---
gnu/packages/golang.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index fa62a9a..44481ed 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2356,9 +2356,13 @@ statistics for wrapped connections.")
"0ydzkipf28hwj2bfxqmwlww47khyk6d152xax4bnyh60f4lq3nx1"))))
(build-system go-build-system)
(arguments
- (quote (#:import-path "github.com/mitchellh/go-homedir"
- ;; TODO: Tests fail because it tries to access home.
- #:tests? #f)))
+ `(#:import-path "github.com/mitchellh/go-homedir"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'set-home-directory
+ (lambda _
+ (setenv "HOME" "/")
+ #t)))))
(home-page "https://github.com/mitchellh/go-homedir")
(synopsis "Go library for detecting and expanding the user's home
directory without cgo")
(description "This is a Go library for detecting the user's home
- 06/18: gnu: go-github-com-ccding-go-stun: Update version string., (continued)
- 06/18: gnu: go-github-com-ccding-go-stun: Update version string., guix-commits, 2020/05/26
- 04/18: gnu: go-github-com-certifi-gocertifi: Update to 2020.02.11., guix-commits, 2020/05/26
- 08/18: gnu: go-github-com-mitchellh-go-homedir: Update version string., guix-commits, 2020/05/26
- 09/18: gnu: go-github-com-mitchellh-go-homedir: Update to 1.1.0., guix-commits, 2020/05/26
- 07/18: gnu: go-github-com-ccding-go-stun: Update to 0.1.2., guix-commits, 2020/05/26
- 11/18: gnu: go-github-com-kr-text: Update to 0.2.0., guix-commits, 2020/05/26
- 12/18: gnu: go-github-com-lib-pq: Update to 1.5.2., guix-commits, 2020/05/26
- 14/18: gnu: go-github-com-go-asn1-ber-asn1-ber: Update to 1.4.1., guix-commits, 2020/05/26
- 15/18: gnu: go-github-com-beorn7-perks-quantile: Update to 1.0.1., guix-commits, 2020/05/26
- 16/18: gnu: go-github-com-maruel-panicparse: Update to 1.4.1., guix-commits, 2020/05/26
- 10/18: gnu: go-github-com-mitchellh-go-homedir: Enable tests.,
guix-commits <=
- 13/18: gnu: go-github-com-oschwald-maxminddb-golang: Update to 1.6.0., guix-commits, 2020/05/26
- 17/18: gnu: go-github-com-prometheus-procfs: Update to 0.0.11., guix-commits, 2020/05/26
- 18/18: gnu: go-github-com-prometheus-procfs: Re-indent., guix-commits, 2020/05/26