From 63ffce1cacc50e8a3f3564549a713d0364d82db9 Mon Sep 17 00:00:00 2001 From: haitham911 Date: Sun, 24 Nov 2024 19:47:20 +0200 Subject: [PATCH] fix: sort full matches instead of initial matches in GetGlobMatches function --- pkg/utils/glob_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/glob_utils.go b/pkg/utils/glob_utils.go index 12dfe0988..38dc95eaa 100644 --- a/pkg/utils/glob_utils.go +++ b/pkg/utils/glob_utils.go @@ -40,7 +40,7 @@ func GetGlobMatches(pattern string) ([]string, error) { fullMatches = append(fullMatches, path.Join(base, match)) } // Sort matches lexicographically - sort.Strings(matches) + sort.Strings(fullMatches) getGlobMatchesSyncMap.Store(pattern, strings.Join(fullMatches, ","))