My first paragraph made this sound like a multi-module problem. It is not, and the scope is wider than I wrote.
A third package reproduces it: golang-github-knqyf263-nested 0.0.1-4, a single module at the root with no /vN and no submodules. Under autopkgtest-virt-unshare on sid, with the 1.70 from the archive, the test fails with one "Use of uninitialized value $_ ... line 1051" and two "workspace module github.com/knqyf263/nested is replaced at all versions", and with 1.70 plus the patch it passes with neither. Also on salsa: https://salsa.debian.org/go-team/packages/golang-github-knqyf263-nested/-/jobs/10608315 So the condition is only this: the module being built is also installed under /usr/share/gocode/src. The multi-module layout changes how many errors you get, 44 for otel against 2 for nested, not whether you get them. That means every dh-go package is affected under autopkgtest, where its own -dev is installed by definition, which matches the roughly 50 reverse dependency autopkgtests in the migration excuses rather than only the multi-module ones. That run is not mine. I checked the two logs on the same machine and they say FAIL and PASS as described.

