diff --git a/pkg/cmd/attestation/test/path.go b/pkg/cmd/attestation/test/path.go index 1e8d52cf9..5b6282b7d 100644 --- a/pkg/cmd/attestation/test/path.go +++ b/pkg/cmd/attestation/test/path.go @@ -1,13 +1,13 @@ package test import ( - "path/filepath" "runtime" + "strings" ) func NormalizeRelativePath(posixPath string) string { if runtime.GOOS == "windows" { - return filepath.FromSlash(posixPath) + return strings.ReplaceAll(posixPath, "/", "\\") } return posixPath }