fix: Windows CI test failures and path normalization (#2670)

This commit is contained in:
Valentin Maerten
2026-03-28 10:39:13 +01:00
committed by GitHub
parent 2ddebca4e1
commit 6b436eda48
8 changed files with 129 additions and 46 deletions

View File

@@ -2,6 +2,7 @@ package fingerprint
import (
"os"
"path/filepath"
"sort"
"github.com/go-task/task/v3/internal/execext"
@@ -50,7 +51,8 @@ func collectKeys(m map[string]bool) []string {
keys := make([]string, 0, len(m))
for k, v := range m {
if v {
keys = append(keys, k)
// Normalize path separators for consistent sorting across platforms
keys = append(keys, filepath.ToSlash(k))
}
}
sort.Strings(keys)