[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/13: gnu: go-github-com-masterminds-sprig-v3: Enable tests.
From: |
guix-commits |
Subject: |
06/13: gnu: go-github-com-masterminds-sprig-v3: Enable tests. |
Date: |
Fri, 28 Jun 2024 10:40:26 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit d9f720b7ef34934f8964c1a3879b5aab3a09bbd1
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue Jun 18 17:56:42 2024 +0100
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
---
gnu/packages/golang-xyz.scm | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 786ab1d200..ca48d5ed6c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -2359,8 +2359,15 @@ implementing features like:
(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
- branch master updated (6a7d5cda17 -> ae55410e07), guix-commits, 2024/06/28
- 02/13: gnu: go-github-com-masterminds-sprig: Move to golang-xyz., guix-commits, 2024/06/28
- 08/13: gnu: go-github-com-masterminds-semver: Rename variable., guix-commits, 2024/06/28
- 09/13: gnu: go-github-com-masterminds-semver-v3: Update to 3.2.1., guix-commits, 2024/06/28
- 04/13: gnu: chezmoi: Refresh package style., guix-commits, 2024/06/28
- 01/13: gnu: go-github-com-nwaples-rardecode-v2: Rename variable., guix-commits, 2024/06/28
- 03/13: gnu: chezmoi: Remove propagated inputs., guix-commits, 2024/06/28
- 10/13: gnu: go-github-com-klauspost-cpuid: Move to golang-xyz., guix-commits, 2024/06/28
- 06/13: gnu: go-github-com-masterminds-sprig-v3: Enable tests.,
guix-commits <=
- 12/13: gnu: Add go-github-com-bmatcuk-doublestar-v4., guix-commits, 2024/06/28
- 11/13: gnu: Add go-github-com-klauspost-cpuid-v2., guix-commits, 2024/06/28
- 05/13: gnu: go-github-com-masterminds-sprig: Rename variable., guix-commits, 2024/06/28
- 13/13: gnu: go-github-com-dlclark-regexp2: Move to golang-xyz., guix-commits, 2024/06/28
- 07/13: gnu: go-github-com-masterminds-semver: Move to golang-xyz., guix-commits, 2024/06/28