From ae9e294bf50ce633b0990e9f7cad9fd7dbbecbf0 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Wed, 28 Sep 2022 13:03:44 -0700 Subject: [PATCH] Use all as architecture if architectures array contains it --- build.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.go b/build.go index c56543f..8885b1c 100644 --- a/build.go +++ b/build.go @@ -239,6 +239,10 @@ func buildPackage(ctx context.Context, script string, mgr manager.Manager) ([]st setScripts(&vars, pkgInfo, filepath.Dir(script)) + if slices.Contains(vars.Architectures, "all") { + pkgInfo.Arch = "all" + } + if pkgInfo.Arch == "arm" { pkgInfo.Arch = checkARMVariant() }