On Wed, Apr 15, 2020 at 4:54 PM Michael Vogt <m...@ubuntu.com> wrote: > > Package: dh-golang > Version: 1.48 > > It would be nice if dh-golang would support setting go buildtags. > > My use-case is a relatively large go application (snapd). It has a > buildtag (nosecboot) to exclude parts that are only relevant for > embedded systems. Right now I workaround this by removing files but > that is a bit of a ugly workaround.
I think you cat override dh_auto_* target, like: override_dh_auto_build: dh_auto_build -- -tags nosecboot Real examples are: https://salsa.debian.org/go-team/packages/runc/-/blob/master/debian/rules#L12 -- Shengjing Zhu