It looks like OBS does some sort of "sanitisation" of paths inside .a archives. This results in the entry for __.PKGDEF to have a '/' appended to it in our packages (to indicate that it's a directory I guess). This then causes an error to occur because the importer code for Go does a string comparison to "__.PKGDEF"[1].
I found out more. It's because when you run `strip` on a Go .a archive, the __.PKGDEF entry gets modified when regenerating the archive. The solution is to disable stripping.
I'm going to just make an SR with that fix.
Here's the SR: https://build.opensuse.org/request/show/439834 -- Aleksa Sarai Software Engineer (Containers) SUSE Linux GmbH https://www.cyphar.com/ -- To unsubscribe, e-mail: opensuse-go+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-go+owner@opensuse.org