diff --git a/arch/arch.go b/arch/arch.go index 155b2a31..765e17ba 100644 --- a/arch/arch.go +++ b/arch/arch.go @@ -63,7 +63,7 @@ var archREs = []struct { {regexp.MustCompile("aarch64"), ARM64}, {regexp.MustCompile("ppc64|ppc64el|ppc64le"), PPC64EL}, {regexp.MustCompile("s390x"), S390X}, - {regexp.MustCompile("risc$|risc-[vV]64"), RISCV64}, + {regexp.MustCompile("riscv64|risc$|risc-[vV]64"), RISCV64}, } // Override for testing. diff --git a/arch/arch_test.go b/arch/arch_test.go index 933e9c6a..b16c2f15 100644 --- a/arch/arch_test.go +++ b/arch/arch_test.go @@ -40,6 +40,7 @@ func (s *archSuite) TestNormaliseArch(c *gc.C) { {"ppc64le", "ppc64el"}, {"ppc64", "ppc64el"}, {"s390x", "s390x"}, + {"riscv64", "riscv64"}, {"risc", "riscv64"}, {"risc-v64", "riscv64"}, {"risc-V64", "riscv64"},