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