From: Nicolas Peugnet <nicolas@club1.fr>
Date: Sat, 25 Jan 2025 16:43:28 +0100
Subject: Allow compiling with doublestar/v4

---
 filesystem/filesystem.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index dc8d272..1ffa6e8 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -121,7 +121,7 @@ func MakeFileSetFunc(baseDir string) function.Function {
 			// automatically cleaned during this operation.
 			pattern = filepath.Join(path, pattern)
 
-			matches, err := doublestar.Glob(pattern)
+			matches, err := doublestar.FilepathGlob(pattern)
 			if err != nil {
 				return cty.UnknownVal(cty.Set(cty.String)), fmt.Errorf("failed to glob pattern (%s): %s", pattern, err)
 			}
