mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
23 lines
449 B
Go
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
|
|
}
|