How to add paramters to the go install call
Asked by
imker
Hello,
with some try and error I figured out how I can build my project with dh-golang. But now I struggle with some details.
As far as I can see from my logs when dh_auto_build calls the "go install" command the following parameters are added automatically "-trimpath -v -p N". But for some reason I also need to add -ldflags "-X main.Version=x.y.z" to this call.
From the docs I understand that dpkg-buildflags is somehow involved into this process, but I don't understand how to map the given examples to golang.
I gues I need to export a DEB_flag_APPEND variable. But I can't see witch one, and I'm also not sure what the value should be. "-ldflags \"-X...." or just "-X ..."
Thanks for your help.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu dh-golang Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- imker
- Solved:
- Last query:
- Last reply:
To post a message you must log in.