From: "Dr. Tobias Quathamer" Date: Sat, 26 Sep 2026 16:08:02 +0200 Subject: Fix FTBFS with gobwas/glob v1 --- utils.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils.go b/utils.go index a639d41..5d279a9 100644 --- a/utils.go +++ b/utils.go @@ -25,6 +25,11 @@ import ( // - (false, nil) if the string does not match. // - (false, error) if the pattern is invalid. func globMatch(pattern, s string) (bool, error) { + pattern = strings.ReplaceAll(pattern, "/**/", "/{**/,}") + if pattern, found := strings.CutPrefix(pattern, "**/"); found { + pattern = "{**/,}" + pattern + } + g, err := glob.Compile(pattern, '/') if err != nil { return false, err