Fix packages with 'all' architecture
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Elara 2023-10-09 18:39:59 -07:00
parent 046db8bf1c
commit d9659dab9c

View File

@ -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
}