I am writing a spec file to build an app.
The build failed with this error:

*** ERROR: No build ID note found in /home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64/usr/share/webapps/mattermost/bin/platform

Googling it, I found a few "tricks" which I tried but don't work:
- Adding "LDFLAGS+=--build-id"
- adding %global _missing_build_ids_terminate_build 0

What can I do to solve this issue ?

Note: the application is written in Go.

Thank you for help.