sharlatan pushed a commit to branch go-team in repository guix. commit 13e0dc141f5c248906bff856af2c71478a586e3e Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Sat Jul 20 20:31:26 2024 +0100
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 --- gnu/packages/golang-check.scm | 17 ++++++++++++----- 1 file 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