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.
This commit is contained in:
parent
c748f5262f
commit
369aab196d
|
@ -2356,9 +2356,13 @@ (define-public go-github-com-mitchellh-go-homedir
|
||||||
"0ydzkipf28hwj2bfxqmwlww47khyk6d152xax4bnyh60f4lq3nx1"))))
|
"0ydzkipf28hwj2bfxqmwlww47khyk6d152xax4bnyh60f4lq3nx1"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(quote (#:import-path "github.com/mitchellh/go-homedir"
|
`(#:import-path "github.com/mitchellh/go-homedir"
|
||||||
;; TODO: Tests fail because it tries to access home.
|
#:phases
|
||||||
#:tests? #f)))
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'set-home-directory
|
||||||
|
(lambda _
|
||||||
|
(setenv "HOME" "/")
|
||||||
|
#t)))))
|
||||||
(home-page "https://github.com/mitchellh/go-homedir")
|
(home-page "https://github.com/mitchellh/go-homedir")
|
||||||
(synopsis "Go library for detecting and expanding the user's home directory without cgo")
|
(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
|
(description "This is a Go library for detecting the user's home
|
||||||
|
|
Loading…
Reference in a new issue