@@ -1183,6 +1183,7 @@ dist_patch_DATA = \
%D%/packages/patches/gobject-introspection-girepository.patch \
%D%/packages/patches/go-fix-script-tests.patch \
%D%/packages/patches/go-skip-gc-test.patch \
+ %D%/packages/patches/go-github-com-bmatcuk-doublestar-1.3-remove-test.patch \
%D%/packages/patches/gpm-glibc-2.26.patch \
%D%/packages/patches/gpodder-disable-updater.patch \
%D%/packages/patches/gpsbabel-fix-i686-test.patch \
@@ -6480,7 +6480,10 @@ template functions.")
(file-name (git-file-name name version))
(sha256
(base32
- "0bk5bixl6rqa8znxghyp6zndbccx9kdyrymjahgyp6qsrp7rk144"))))
+ "0bk5bixl6rqa8znxghyp6zndbccx9kdyrymjahgyp6qsrp7rk144"))
+ (patches
+ (search-patches
+ "go-github-com-bmatcuk-doublestar-1.3-remove-test.patch"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/bmatcuk/doublestar"))
new file mode 100644
@@ -0,0 +1,15 @@
+Remove test which fails with Go >= 1.15 due to API changes.
+This patch should no longer be necessary with doublestar v4+
+
+diff --git a/doublestar_test.go b/doublestar_test.go
+index b21d20ad4b..f510c3d06b 100644
+--- a/doublestar_test.go
++++ b/doublestar_test.go
+@@ -80,7 +80,6 @@ var matchTests = []MatchTest{
+ {"[", "a", false, ErrBadPattern, true},
+ {"[^", "a", false, ErrBadPattern, true},
+ {"[^bc", "a", false, ErrBadPattern, true},
+- {"a[", "a", false, nil, false},
+ {"a[", "ab", false, ErrBadPattern, true},
+ {"*x", "xxx", true, nil, true},
+ {"[abc]", "b", true, nil, true},