[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1078793: Provide environment variables as file like /usr/share/dpkg/buildflags.mk



Package: dh-golang
Version: 1.62
Severity: wishlist
X-Debbugs-Cc: debian-go@lists.debian.org, zhsj@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?


Reply to: