OK, I guess I start with writing down how debuginfo works right now:
There are quite a few macros that
[control](https://github.com/rpm-software-management/rpm/blob/master/macros.in#L452)
and
[implement](https://github.com/rpm-software-management/rpm/blob/master/macros.in#L135)
the debuginfo c
Well, those that do have no problem. Those that don't, should be "BuildArch:
noarch" *in the main package* and no debuginfo will be attempted on them.
Sub-package level noarch is a special case to allow shared noarch content in an
otherwise arch dependent package. The golang package abuses that