This reverts commit
e6de433ccb2784581d6c775cce97f414ef9334b1.
This introduced a breaking change which is not suitable for backport to
stable LTS branches.
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
import re
def map_arch(a):
- """
- Map our architecture names to Go's GOARCH names.
- See https://github.com/golang/go/blob/master/src/internal/syslist/syslist.go for the complete list.
- """
if re.match('i.86', a):
return '386'
elif a == 'x86_64':
return 'riscv64'
elif a == 'loongarch64':
return 'loong64'
- raise KeyError(f"Cannot map architecture {a}")
+ return ''