Force always /

Fuck windows and its path fuck windows
This commit is contained in:
2025-04-01 12:15:03 +02:00
parent 679322a8ac
commit 81d69b8ce0

View File

@@ -206,6 +206,9 @@ func ExpandGLobs(patterns map[string]struct{}) ([]string, error) {
logger.Debug("Found %d matches for pattern %s", len(matches), pattern) logger.Debug("Found %d matches for pattern %s", len(matches), pattern)
for _, m := range matches { for _, m := range matches {
m = filepath.Join(root, m) m = filepath.Join(root, m)
m = filepath.Clean(m)
m = strings.ReplaceAll(m, "\\", "/")
info, err := os.Stat(m) info, err := os.Stat(m)
if err != nil { if err != nil {
logger.Warning("Error getting file info for %s: %v", m, err) logger.Warning("Error getting file info for %s: %v", m, err)