Hello,
I am trying to build a golang package in COPR, before opening the BZ for inclusion into fedora.
go2rpm does almost everything, expect setting a LDFLAG needed for the binary to display the appropriate binary version [1].
When I build locally using mock (with a default config), the binary within the RPM generated is displaying the appropriate version.
When I install the package from the COPR repository (built using the same SRPM), the binary is different and prints a version "dev build", like if the LDFLAG was ignored.
Looking at the build.log [2], we can see the LDFLAG is set during the gobuild command.
I suspected some cache at the COPR repository level, so I tried to clean everything and rebuild it. Same result.
At this point I am a bit lost. Anybody to give some hint?
My spec file and my SRPM can be found here. [3]
Thanks in advance for your help.
Jérémy
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure