From 0c1622e563500acefc9c7e272c499946cd91ebba Mon Sep 17 00:00:00 2001 From: Michal Biesek Date: Sat, 12 Aug 2023 11:52:20 +0200 Subject: [PATCH] Add `riscv64` arch to `check{Architecture|Platform}` Signed-off-by: Michal Biesek --- schema/validator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schema/validator.go b/schema/validator.go index 41ca58b50..4b8cd0869 100644 --- a/schema/validator.go +++ b/schema/validator.go @@ -212,6 +212,7 @@ func checkArchitecture(Architecture string, Variant string) { "mips64": {""}, "mips64le": {""}, "s390x": {""}, + "riscv64": {""}, } for arch, variants := range validCombins { if arch == Architecture { @@ -232,7 +233,7 @@ func checkPlatform(OS string, Architecture string) { "darwin": {"386", "amd64", "arm", "arm64"}, "dragonfly": {"amd64"}, "freebsd": {"386", "amd64", "arm"}, - "linux": {"386", "amd64", "arm", "arm64", "ppc64", "ppc64le", "mips64", "mips64le", "s390x"}, + "linux": {"386", "amd64", "arm", "arm64", "ppc64", "ppc64le", "mips64", "mips64le", "s390x", "riscv64"}, "netbsd": {"386", "amd64", "arm"}, "openbsd": {"386", "amd64", "arm"}, "plan9": {"386", "amd64"},