mirror of
https://github.com/containers/podman.git
synced 2025-06-06 23:08:04 +08:00

1. Set the marker to the current virtual machine type instead of fixed qemu. 2. Update containers/common [NO NEW TESTS NEEDED] Signed-off-by: Black-Hole1 <bh@bugs.cc>
25 lines
378 B
Go
25 lines
378 B
Go
package specgen
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/containers/common/pkg/machine"
|
|
)
|
|
|
|
func shouldResolveWinPaths() bool {
|
|
return machine.HostType() == "wsl"
|
|
}
|
|
|
|
func shouldResolveUnixWinVariant(path string) bool {
|
|
_, err := os.Stat(path)
|
|
return err != nil
|
|
}
|
|
|
|
func resolveRelativeOnWindows(path string) string {
|
|
return path
|
|
}
|
|
|
|
func winPathExists(path string) bool {
|
|
return false
|
|
}
|