🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by juan.mendezr Tue, 10 Nov 2026 19:50
Bug#1153669: dh-go: a sub-module is mapped by its directory, not by the module it declares
#4052
Author: juan.mendezr
Date: Tue, 10 Nov 2026 19:50
31 lines
2810 bytes
Package: dh-go
Version: 1.71
Severity: important
Tags: patch
X-Debbugs-Cc: juan.mendezr@proton.me

_construct_modules walks the installed modules and records each sub-module
under the directory it found, not under the module path in its go.mod. Those
differ when the parent has a /vN suffix, because a sub-module carries the
suffix at the end:

  golang-lru/v2/arc declares github.com/hashicorp/golang-lru/arc/v2
  go-redis/extra/redisotel declares github.com/redis/go-redis/extra/redisotel/v9

So go.work replaces a path nobody asks for, and the build fails:

  no required module provides package github.com/hashicorp/golang-lru/arc/v2

The patch reads the module line from the sub-module go.mod, which that walk
already opens: https://salsa.debian.org/go-team/dh-go/-/merge_requests/14

Clean sid chroot: a 10 line package importing arc/v2 fails with 1.71 and
builds with the patch. distribution 3.1.2, which needs three such modules,
compiles with the patch and nothing in debian/rules. otel 1.46.0-3 still
builds with the same 125 tested packages, and the reproducer of
https://bugs.debian.org/1149023 still works.

Found by Rafael Passos in #debian-go while packaging distribution.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads