🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1149023: dh-go: go.work gets a replace pointing at a directory with no go.mod

#4327
From: Juan Manuel Méndez Rey
Date: Fri, 13 Nov 2026 03:00
50 lines
4296 bytes
--b1=_mEMv1VZU5NB22c98zZcU2GcVVr4xXdPdzFfrogZnxg
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Control: found -1 1.71

Still present in dh-go 1.71. A minimal source package reproduces it in a
clean sid chroot: a main package that imports
github.com/dsnet/compress/bzip2, with Build-Depends on
golang-github-dsnet-compress-dev and golang-github-klauspost-cpuid-dev.

dsnet/compress requires github.com/klauspost/cpuid v1.2.0, and
golang-github-klauspost-cpuid-dev 2.4.1-1 installs only
github.com/klauspost/cpuid/v2. The build stops with:

  github.com/klauspost/cpuid@v1.2.0 (replaced by ./src/github.com/klauspost=
/cpuid):
    reading src/github.com/klauspost/cpuid/go.mod: open
    .../_build/src/github.com/klauspost/cpuid/go.mod: no such file or direc=
tory

Without golang-github-klauspost-cpuid-dev in Build-Depends the same package
builds, because the directory does not exist and the module goes to the
dummy section.

The reproducer is attached (3.0 native: main.go, go.mod and debian/).

--b1=_mEMv1VZU5NB22c98zZcU2GcVVr4xXdPdzFfrogZnxg
Content-Type: application/gzip; name=dh-go-1149023-reproducer.tar.gz
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=dh-go-1149023-reproducer.tar.gz

H4sIAAAAAAAAA+1Ya2/bNhTN1/JX3GUdYG+RRL0bbxm6dsCwARmCGRj2baAkRtYikRofWd2i/31X
spsuWlIjqOt1KA9sSCSvxMe95+qQ1aqWnuK9kh71w+DoQ4Ai8jwdr4jpdbwP0yhPwjTJQ7QLozCO
jyD9IKOZwGrDFMCRktK8y25X+/8U1W3/19LvZLXnPgYHZ1lyr//DNJv4P44S9D/d8zjuxCfuf/S2
bTnwF6zrW+5LVQdDSIwRQUgtIfSjiBDF/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!news-fra.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NHnPX-1Och-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Juan Manuel Méndez Rey <juan.mendezr@proton.me>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1149023: dh-go: go.work gets a replace pointing at a directory with no go.mod
Date: Fri, 13 Nov 2026 04:00:02 +0100
Message-ID: <NYPGa-bxNk-13@gated-at.bofh.it>
References: <NHnPX-1Och-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov 13 02:53:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.44
Reply-To: Juan Manuel Méndez Rey <juan.mendezr@proton.me>, 1149023@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+pkg-go@tracker.debian.org
X-Debian-Pr-Message: followup 1149023
X-Debian-Pr-Package: dh-go
X-Debian-Pr-Source: dh-go
Feedback-ID: 176548819:user:proton
X-Pm-Message-ID: 432d2d7f82606a5c30ea4eeaf97713b7459f63f0
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="b1=_mEMv1VZU5NB22c98zZcU2GcVVr4xXdPdzFfrogZnxg"
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002324
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 50
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 13 Nov 2026 01:10:20 +0000
X-Original-Message-ID: <179453221767.1594459.13571150084605734246@proton.me>
X-Original-References: <1790379824.2.2418741@proton.me>