Proposal: Make apk-fetch respect --arch too
--arch flag is a global option to
apk(8). Unfortunately, it only seems to be respected presently when used in conjunction with
--root. For this reason,
apk fetch --arch riscv64 linux-edge will download the
linux-edge package for the host architecture (e.g.
x86_64, not for
riscv64). Unfortunately, it also does not emit an error message which is very confusing.
I would propose the following changes:
apk fetch --arch riscv64 linux-edgeshould download the
linux-edgepackage for the
apksubcommands which do not support
--archfail. This was a source of confusion in the past, see for example aports#12905 (closed)