Would it be out of scope for dpkg-buildflags or debhelper or something else notionally build system agnostic to do this?
On Fri, 16 Aug 2024 at 20:57, Shengjing Zhu <z...@debian.org> wrote: > Package: dh-golang > Version: 1.62 > Severity: wishlist > X-Debbugs-Cc: debian...@lists.debian.org, z...@debian.org > > More and more environment variables need to be set for go command in > packaging build. > > See > https://salsa.debian.org/go-team/packages/dh-golang/-/blob/debian/1.62/lib/Debian/Debhelper/Buildsystem/golang.pm?ref_type=tags#L330 > > For running go command outside dh-golang, like calling go command in > debian/rules, it needs > > GOPROXY=off > GO111MODULE=off > GOTOOLCHAIN=local > > Starting from go1.23, GOTELEMETRY=off as well. > > Not sure how best to resolve that. > > + Prvoding a makefile, so people can call `include /path/to/it` in > `debian/rules`. > + Providing a wrapper for the go command, so people can use it in > `/debian/rules`. (But how to append it to the PATH?) > + Any other ideas? > >