gnu: go-github-com-bmatcuk-doublestar: Simplify package.

* gnu/packages/golang.scm (go-github-com-bmatcuk-doublestar)
[arguments]<test-flags>: Move test skip logic here.

Change-Id: I8e6929b519585e5150fcc7d12e9c5cda4fb2e3c5
This commit is contained in:
Sharlatan Hellseher 2024-11-24 12:11:54 +00:00
parent 6522a4aa57
commit f8d2fb1903
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -5429,15 +5429,10 @@ maps (because they are not addressable using Go reflection).")
"0bk5bixl6rqa8znxghyp6zndbccx9kdyrymjahgyp6qsrp7rk144"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/bmatcuk/doublestar"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-incompatible-test
;; This test fails with Go 1.16.
(lambda _
(substitute* "src/github.com/bmatcuk/doublestar/doublestar_test.go"
(("\\{\"a\\[\", \"a\", false, nil, false\\},.*")
"")))))))
(list
;; This test fails with Go 1.16.
#:test-flags #~(list "-skip" "TestMatch")
#:import-path "github.com/bmatcuk/doublestar"))
(home-page "https://github.com/bmatcuk/doublestar/")
(synopsis "Path pattern matching and globbing supporting doublestar")
(description "@code{doublestar} is a Go implementation of path pattern