spiegel_podman/pkg/specgen/winpath_linux.go
Vyacheslav Bespalov d6c79580f8 [Fixes: #27571] Fix 'shouldResolveWinPaths' returning 'false' on Windows
Signed-off-by: Vyacheslav Bespalov <vbespalov@ptsecurity.com>
2026-02-06 15:36:47 -05:00

23 lines
449 B
Go

package specgen
import (
"go.podman.io/common/pkg/machine"
"go.podman.io/storage/pkg/fileutils"
)
func shouldResolveWinPaths() bool {
hostType := machine.HostType()
return hostType == machine.Wsl || hostType == machine.HyperV
}
func shouldResolveUnixWinVariant(path string) bool {
return fileutils.Exists(path) != nil
}
func resolveRelativeOnWindows(path string) string {
return path
}
func winPathExists(_ string) bool {
return false
}