mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-02 08:07:29 +01:00
gnu: go-github-com-masterminds-sprig-v3: Enable tests.
* gnu/packages/golang-xyz.scm (go-github-com-masterminds-sprig-v3) [arguments]: <#:tests?>: Enable them. <#:phases>: Add 'remove-network-tests phase. Change-Id: I526f8c7d273ea3d88f8844da97293a1080471c62
This commit is contained in:
parent
1afefe0f0f
commit
d9f720b7ef
1 changed files with 9 additions and 2 deletions
|
@ -2359,8 +2359,15 @@ (define-public go-github-com-masterminds-sprig-v3
|
|||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #f ;network tests only
|
||||
#:import-path "github.com/Masterminds/sprig/v3"))
|
||||
#:import-path "github.com/Masterminds/sprig/v3"
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; Tests tries to reach Google:
|
||||
;; tpl := `{{"www.google.com" | getHostByName}}`
|
||||
(add-after 'unpack 'remove-network-tests
|
||||
(lambda* (#:key import-path #:allow-other-keys)
|
||||
(delete-file
|
||||
(string-append "src/" import-path "/network_test.go")))))))
|
||||
(native-inputs
|
||||
(list go-github-com-stretchr-testify))
|
||||
(propagated-inputs
|
||||
|
|
Loading…
Reference in a new issue