mirror of
https://github.com/containers/podman.git
synced 2025-08-23 17:22:30 +08:00

It qemu cannot be compiled anyway so make sure we do not try to compile parts where the typechecker complains about on windows. Also all the e2e test files are only used on linux as well. pkg/machine/wsl also reports some error but to many for me to fix them now. One minor problem was fixed in pkg/machine/machine_windows.go. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
23 lines
503 B
Go
23 lines
503 B
Go
//go:build !darwin && !windows
|
|
|
|
package qemu
|
|
|
|
import (
|
|
"github.com/containers/common/pkg/config"
|
|
)
|
|
|
|
// setNewMachineCMDOpts are options needed to pass
|
|
// into setting up the qemu command line. long term, this need
|
|
// should be eliminated
|
|
// TODO Podman5
|
|
type setNewMachineCMDOpts struct{}
|
|
|
|
// findQEMUBinary locates and returns the QEMU binary
|
|
func findQEMUBinary() (string, error) {
|
|
cfg, err := config.Default()
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return cfg.FindHelperBinary(QemuCommand, true)
|
|
}
|