From 7119a2a152edcf517a6cbc3271794c720bff2bd8 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 14 Jul 2020 08:16:14 -0700 Subject: [PATCH] =?UTF-8?q?platforms:=20don=E2=80=99t=20log=20arm=20varian?= =?UTF-8?q?t=20error=20on=20darwin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tonis Tiigi --- platforms/cpuinfo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/cpuinfo.go b/platforms/cpuinfo.go index ffa8970a8..db65a726b 100644 --- a/platforms/cpuinfo.go +++ b/platforms/cpuinfo.go @@ -74,8 +74,8 @@ func getCPUInfo(pattern string) (info string, err error) { } func getCPUVariant() string { - if runtime.GOOS == "windows" { - // Windows only supports v7 for ARM32 and v8 for ARM64 and so we can use + if runtime.GOOS == "windows" || runtime.GOOS == "darwin" { + // Windows/Darwin only supports v7 for ARM32 and v8 for ARM64 and so we can use // runtime.GOARCH to determine the variants var variant string switch runtime.GOARCH {