From 0a91ae0ab669df99b2f6a8599f417f2b8e0d5e90 Mon Sep 17 00:00:00 2001 From: Tarik02 Date: Wed, 19 May 2021 19:47:02 +0300 Subject: [PATCH] Fix default arch resolve function Signed-off-by: Tarik02 --- pkg/limayaml/defaults.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/limayaml/defaults.go b/pkg/limayaml/defaults.go index 410311d3ab0..65aee20655d 100644 --- a/pkg/limayaml/defaults.go +++ b/pkg/limayaml/defaults.go @@ -23,10 +23,10 @@ func FillDefault(y *LimaYAML) { func resolveArch(s string) Arch { if s == "" || s == "default" { - if runtime.GOOS == "amd64" { - return AARCH64 - } else { + if runtime.GOARCH == "amd64" { return X8664 + } else { + return AARCH64 } } return s