aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-07-20 20:31:26 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-07-25 21:01:00 +0100
commit13e0dc141f5c248906bff856af2c71478a586e3e (patch)
treecf02a46a2165bd385fc44cebd123dc7354db2e74 /gnu
parent0d4b8d60dc9fc8992fcd9197587bad6851a54433 (diff)
downloadguix-13e0dc141f5c248906bff856af2c71478a586e3e.tar
guix-13e0dc141f5c248906bff856af2c71478a586e3e.tar.gz
gnu: go-pgregory-net-rapid: Build with default go.
* gnu/packages/golang-check.scm (go-pgregory-net-rapid): Fix indentation. [arguments]: <#:go>: Use default. <#:phases>: Add 'remove-failing-tests phase. Change-Id: I61a925255f806b712f35625e0fd9f1684e5d7a30
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-check.scm17
1 files changed, 12 insertions, 5 deletions
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 18fb48147d..287a514ace 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1361,16 +1361,23 @@ advanced Go linter.")
(build-system go-build-system)
(arguments
(list
- #:go go-1.18
- #:import-path "pgregory.net/rapid"))
+ #:import-path "pgregory.net/rapid"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-failing-tests
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ ;; Remove test file failing on go-1.21, see
+ ;; <https://github.com/flyingmutant/rapid/issues/68>.
+ (delete-file "strings_example_test.go")))))))
(home-page "https://pgregory.net/rapid/")
(synopsis "Go property-based testing library")
(description
"@code{Rapid} is a Go library for property-based testing.
-Rapid checks that properties you define hold for a large number of automatically
-generated test cases. If a failure is found, rapid automatically minimizes the
-failing test case before presenting it.
+Rapid checks that properties you define hold for a large number of
+automatically generated test cases. If a failure is found, rapid
+automatically minimizes the failing test case before presenting it.
Features:
@itemize