Article View: linux.debian.bugs.dist
Article #5094Bug#1154471: dh-go: dh_auto_configure never returns when the import path has one segment
From: Juan Manuel Mendez Rey
Date: Thu, 19 Nov 2026 13:20
Date: Thu, 19 Nov 2026 13:20
32 lines
2780 bytes
2780 bytes
Package: dh-go
Version: 1.71
Severity: important
Tags: patch
_create_go_work_file looks for the go.mod of each target by walking up the
parent directories:
$module = dirname($module)
while $module ne '.'
and not -e "$builddir/src/$module/go.mod";
That dirname is the one Debian::Debhelper::Dh_Lib exports, and it returns its
argument unchanged when there is no slash in it. So an import path of a single
segment never reaches '.', the loop never ends, and the search of the child
directories right below it never runs. The loop came in with 1.70.
Measured with a package whose XS-Go-Import-Path is privado.ai and whose go.mod
is in go-astgen/, which is the shape of the goastgen packaging.
dh_auto_configure under timeout 20 gives rc 124 with 1.71 from the archive and
rc 0 with the patch, writing "use ./src/privado.ai/go-astgen". No regression:
golang-opentelemetry-otel 1.46.0-3 built against the patched dh-go gives Status
successful, Lintian successful, 125 packages ok and 0 FAIL, the same as its
baseline.
Patch: https://salsa.debian.org/go-team/dh-go/-/merge_requests/15
Technical Details
Message-ID:
<O1adr-cTtf-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-lon.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-lon.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Juan Manuel Mendez Rey <juan.mendezr@proton.me> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154471: dh-go: dh_auto_configure never returns when the import path has one segment Date: Thu, 19 Nov 2026 14:20:01 +0100 Message-ID: <O1adr-cTtf-3@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Nov 19 13:15:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Juan Manuel Mendez Rey <juan.mendezr@proton.me>, 1154471@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: team+pkg-go@tracker.debian.org X-Debian-Pr-Message: report 1154471 X-Debian-Pr-Package: dh-go X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: dh-go Feedback-ID: 176548819:user:proton X-Pm-Message-ID: 5085b5f7973435d300adf5ae999b98eb02e728d7 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/2003545 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 19 Nov 2026 13:12:59 +0000 X-Original-Message-ID: <828f3b6eeb27273acf04fa255b6ee9c8@proton.me>