From d9659dab9c756724e96bfcc91984396d3cd258a7 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Mon, 9 Oct 2023 18:39:59 -0700 Subject: [PATCH] Fix packages with 'all' architecture --- internal/cpu/cpu.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cpu/cpu.go b/internal/cpu/cpu.go index 4262265..18cf561 100644 --- a/internal/cpu/cpu.go +++ b/internal/cpu/cpu.go @@ -24,6 +24,7 @@ import ( "strconv" "strings" + "golang.org/x/exp/slices" "golang.org/x/sys/cpu" ) @@ -58,7 +59,7 @@ func Arch() string { } func IsCompatibleWith(target string, list []string) bool { - if target == "all" { + if target == "all" || slices.Contains(list, "all") { return true }