Fix packages with 'all' architecture
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
046db8bf1c
commit
d9659dab9c
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user