fix imports

pull/11024/head
Ilya Zuyev 2021-04-08 11:50:03 -07:00
parent 8d8f95305b
commit 6aa7e11923
2 changed files with 7 additions and 5 deletions

View File

@ -19,14 +19,15 @@ package cmd
import (
"flag"
"fmt"
"k8s.io/minikube/pkg/minikube/notify"
"k8s.io/minikube/pkg/version"
"os"
"path/filepath"
"runtime"
"strings"
"time"
"k8s.io/minikube/pkg/minikube/notify"
"k8s.io/minikube/pkg/version"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"

View File

@ -17,11 +17,12 @@ limitations under the License.
package detect
import (
. "github.com/klauspost/cpuid"
"net/http"
"os"
"runtime"
"strings"
"github.com/klauspost/cpuid"
)
// IsMicrosoftWSL will return true if process is running in WSL in windows
@ -49,5 +50,5 @@ func IsCloudShell() bool {
// IsAmd64M1Emulation determines whether amd64 minikube binary is running on M1 mac in emulation mode
func IsAmd64M1Emulation() bool {
return runtime.GOARCH == "amd64" && strings.HasPrefix(CPU.BrandName, "VirtualApple")
}
return runtime.GOARCH == "amd64" && strings.HasPrefix(cpuid.CPU.BrandName, "VirtualApple")
}