Re: Setting build tags in dh-golang
We already have too many environment variables. I’m a fan of having precisely 1 way of configuration for any given feature.
One thing that I noticed is that I apparently can't add the tags to the '%' rule, I do need to override 'dh_auto_build'. That's strange..
TBH, since much of the debhelper's behavior is currently controlled via environment variables, I somehow had expected to set them that way as well. This way, I wouldn't have to add overrides.
Michael, have you considered this idea before?
In general, I would encourage you to nudge upstream to make the default behavior sensitive and only require build tags for unusual setups.
Also, please feel free to send documentation improvement pull requests :)
I may be missing something obvious, but I'm looking for a way to set build tags in debian/rules.
While working on the github.com/containers/image
library, upstream has advised me to avoid some dependencies by setting build tags. After reading the Debian::Debhelper::Buildsystem::golang perldoc it is not clear to me how to achieve this. (BTW, I would have expected lots of the information found in that perldoc to in the manpage dh_golang(1p).
Has this been done in other packages before where I could take inspiration from?