🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3825

Bug#1146743: dh-go: Still got the legacy DefaultGODEBUG flag while built with dh-go

#3825
From: juan.mendezr
Date: Sun, 08 Nov 2026 20:30
37 lines
3317 bytes
Martin's impression is right, and it is the go directive, not the helper. I
built the same throwaway package three times in a clean sid chroot, changing
one thing at a time:

  dh-go,     go.mod says go 1.21:  DefaultGODEBUG with 26 entries
  dh-golang, go.mod says go 1.21:  DefaultGODEBUG with 27 entries
  dh-go,     go.mod says go 1.27:  no DefaultGODEBUG at all

The two lists at go 1.21 are the same set, except dh-golang also has
panicnil=1. Same chroot, same toolchain, same `go install` command line in all
three, which the logs show.

So dh-go is not adding anything. Go bakes the GODEBUG compatibility defaults
for whatever language version the module declares, and it does that in module
mode regardless of which helper drove the build. dh-golang 1.67 builds
module-aware too when a go.mod is present, which is why it shows the same
thing.

That means the lever is upstream's go directive, and raising it is a
deliberate change of runtime behaviour for that package, not a packaging
detail: at go 1.21 the binary keeps panicnil, httpmuxgo121, tlssha1 and
x509negativeserial, and at go 1.27 it does not. Worth deciding per package
rather than across the board.

If anything is wanted from dh-go, the useful thing would be a warning when the
declared version is older than the toolchain, so the maintainer sees it at
build time instead of having to run `go version -m` on the binary. I am happy
to write that if you think it is worth having.

The package I used is 15 lines, I can put it somewhere if anyone wants to
repeat it.
Technical Details
Message-ID: <NXhGy-aG9V-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <NzUpH-fjho-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: juan.mendezr@proton.me
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1146743: dh-go: Still got the legacy DefaultGODEBUG flag while built with dh-go
Date: Sun, 08 Nov 2026 21:30:02 +0100
Message-ID: <NXhGy-aG9V-7@gated-at.bofh.it>
References: <NzUpH-fjho-5@gated-at.bofh.it>
X-Original-To: 1146743@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov  8 20:27:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: juan.mendezr@proton.me, 1146743@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+pkg-go@tracker.debian.org
X-Debian-Pr-Message: followup 1146743
X-Debian-Pr-Package: dh-go
X-Debian-Pr-Source: dh-go
Feedback-ID: 176548819:user:proton
X-Pm-Message-ID: 6d6673bcf887a1155beb3de1d34f5f67199c8f39
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001531
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 37
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 08 Nov 2026 20:24:49 +0000
X-Original-Message-ID: <82a217825c60641aa4fb24a30d69acd3@proton.me>
X-Original-References: <178859843649.2435720.16369548642664984639.reportbug@lla3.bfh.ch>