From 50d1654ae64aa085b649d628f5a20a7ea6b685d9 Mon Sep 17 00:00:00 2001 From: chaosinthecrd Date: Fri, 19 Dec 2025 16:15:58 +0000 Subject: [PATCH] use runtime.GOOS to determine architecture of container build for darwin Fixes #28 Signed-off-by: chaosinthecrd --- mkctr.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mkctr.go b/mkctr.go index 184968b..9c386bd 100644 --- a/mkctr.go +++ b/mkctr.go @@ -170,13 +170,9 @@ func canRunLocal(p v1.Platform) bool { if p.OS != "linux" { return false } - if runtime.GOOS == "linux" { + if runtime.GOOS == "linux" || runtime.GOOS == "darwin" { return p.Architecture == runtime.GOARCH } - if runtime.GOOS == "darwin" { - // macOS can run amd64 linux binaries in docker. - return p.Architecture == "amd64" - } return false }