spiegel_podman/pkg/specgen/winpath_linux.go
Vyacheslav Bespalov a331c51c05
[Fixes: #27571] Fix 'shouldResolveWinPaths' returning 'false' on Windows
Signed-off-by: Vyacheslav Bespalov <vbespalov@ptsecurity.com>
2025-11-21 15:32:39 +03: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
}