fix supported drivers list for darwin/arm64
parent
7536f4436c
commit
60bafd00fa
|
@ -16,10 +16,21 @@ limitations under the License.
|
|||
|
||||
package driver
|
||||
|
||||
import "os/exec"
|
||||
import (
|
||||
"os/exec"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
// supportedDrivers is a list of supported drivers on Darwin.
|
||||
var supportedDrivers = []string{
|
||||
var supportedDrivers []string = func() []string {
|
||||
if runtime.GOARCH == "arm64" {
|
||||
// on darwin/arm64 only docker and ssh are supported yet
|
||||
return []string{
|
||||
Docker,
|
||||
SSH,
|
||||
}
|
||||
}
|
||||
return []string{
|
||||
VirtualBox,
|
||||
Parallels,
|
||||
VMwareFusion,
|
||||
|
@ -28,6 +39,7 @@ var supportedDrivers = []string{
|
|||
Docker,
|
||||
SSH,
|
||||
}
|
||||
}()
|
||||
|
||||
func VBoxManagePath() string {
|
||||
cmd := "VBoxManage"
|
||||
|
|
Loading…
Reference in New Issue