platforms: don’t log arm variant error on darwin
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
5d470fa23b
commit
7119a2a152
@ -74,8 +74,8 @@ func getCPUInfo(pattern string) (info string, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getCPUVariant() string {
|
func getCPUVariant() string {
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" || runtime.GOOS == "darwin" {
|
||||||
// Windows only supports v7 for ARM32 and v8 for ARM64 and so we can use
|
// Windows/Darwin only supports v7 for ARM32 and v8 for ARM64 and so we can use
|
||||||
// runtime.GOARCH to determine the variants
|
// runtime.GOARCH to determine the variants
|
||||||
var variant string
|
var variant string
|
||||||
switch runtime.GOARCH {
|
switch runtime.GOARCH {
|
||||||
|
Loading…
Reference in New Issue
Block a user