To make Go tooling work, we should not strip debug symbols or move them to separate files.
Yes, that is not a best practice for RPM/DEB packaging, but:
- ability to debug come first;
- we don't publish RPMs/DEBs to distro repositories.
In addition to RPM/DEB-specific things, we should remove Go-specific linker flags (ldflags) -w and -s if we have them somewhere.