Skip to content

Commit 6aa7e11

Browse files
committed
fix imports
1 parent 8d8f953 commit 6aa7e11

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

cmd/minikube/cmd/root.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ package cmd
1919
import (
2020
"flag"
2121
"fmt"
22-
"k8s.io/minikube/pkg/minikube/notify"
23-
"k8s.io/minikube/pkg/version"
2422
"os"
2523
"path/filepath"
2624
"runtime"
2725
"strings"
2826
"time"
2927

28+
"k8s.io/minikube/pkg/minikube/notify"
29+
"k8s.io/minikube/pkg/version"
30+
3031
"github.com/spf13/cobra"
3132
"github.com/spf13/pflag"
3233
"github.com/spf13/viper"

pkg/minikube/detect/detect.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ limitations under the License.
1717
package detect
1818

1919
import (
20-
. "github.com/klauspost/cpuid"
2120
"net/http"
2221
"os"
2322
"runtime"
2423
"strings"
24+
25+
"github.com/klauspost/cpuid"
2526
)
2627

2728
// IsMicrosoftWSL will return true if process is running in WSL in windows
@@ -49,5 +50,5 @@ func IsCloudShell() bool {
4950

5051
// IsAmd64M1Emulation determines whether amd64 minikube binary is running on M1 mac in emulation mode
5152
func IsAmd64M1Emulation() bool {
52-
return runtime.GOARCH == "amd64" && strings.HasPrefix(CPU.BrandName, "VirtualApple")
53-
}
53+
return runtime.GOARCH == "amd64" && strings.HasPrefix(cpuid.CPU.BrandName, "VirtualApple")
54+
}

0 commit comments

Comments
 (0)