Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-zuyev committed Apr 8, 2021
1 parent 8d8f953 commit 6aa7e11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions cmd/minikube/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 4 additions & 3 deletions pkg/minikube/detect/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
}

0 comments on commit 6aa7e11

Please sign in to comment.