Skip to content

Commit 4bec2db

Browse files
authored
Merge pull request #4373 from tonistiigi/darwin-variant-log
platforms: don’t log arm variant error on darwin
2 parents 5d470fa + 7119a2a commit 4bec2db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

platforms/cpuinfo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ func getCPUInfo(pattern string) (info string, err error) {
7474
}
7575

7676
func getCPUVariant() string {
77-
if runtime.GOOS == "windows" {
78-
// Windows only supports v7 for ARM32 and v8 for ARM64 and so we can use
77+
if runtime.GOOS == "windows" || runtime.GOOS == "darwin" {
78+
// Windows/Darwin only supports v7 for ARM32 and v8 for ARM64 and so we can use
7979
// runtime.GOARCH to determine the variants
8080
var variant string
8181
switch runtime.GOARCH {

0 commit comments

Comments
 (0)