From 8ee2c8338e5d4101a0d283b0a8343d86f65bcc1d Mon Sep 17 00:00:00 2001 From: Elara 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() }