diff --git a/internal/exec/vendor_utils.go b/internal/exec/vendor_utils.go index 02e0b189c3..9099388148 100644 --- a/internal/exec/vendor_utils.go +++ b/internal/exec/vendor_utils.go @@ -185,6 +185,7 @@ func ReadAndProcessVendorConfigFile( var configFiles []string if fileInfo.IsDir() { + foundVendorConfigFile = filepath.ToSlash(foundVendorConfigFile) matches, err := doublestar.Glob(os.DirFS(foundVendorConfigFile), "*.{yaml,yml}") if err != nil { return vendorConfig, false, "", err diff --git a/pkg/utils/glob_utils.go b/pkg/utils/glob_utils.go index 268473c534..ec637c2c4b 100644 --- a/pkg/utils/glob_utils.go +++ b/pkg/utils/glob_utils.go @@ -21,7 +21,7 @@ func GetGlobMatches(pattern string) ([]string, error) { if found && existingMatches != nil { return strings.Split(existingMatches.(string), ","), nil } - + pattern = filepath.ToSlash(pattern) base, cleanPattern := doublestar.SplitPattern(pattern) f := os.DirFS(base)