Hi Simon,

On Mon, Jul 20, 2026 at 11:49 PM Simon Josefsson <[email protected]> wrote:
> Yay, thanks!  Could you expand further (maybe a wiki page?) with what
> the error messages that lead you to add those mappings?  I.e., how to
> discover when these mappings are useful.

Yes, here is the build error on salsa-ci before I add the
DH_GOLANG_MODULE_MAPPINGS workaround:
  
https://salsa.debian.org/go-team/packages/yubikey-touch-detector/-/jobs/9977345

> Adding links to the documention would also be good:
>
> https://manpages.debian.org/experimental/dh-golang/Debian::Debhelper::Buildsystem::golang.3pm.en.html#DH_GOLANG_MODULE_MAPPINGS

Good suggestion. But let's check the root of the issue first and then
document it correctly.

> Is there a preference where to fix these issues?
>
> It could be fixed with DH_GOLANG_MODULE_MAPPINGS in every consumer of a
> golang-*-dev package, but couldn't it also be fixed in the golang-*-dev
> package once?  The latter seems to scale better, doesn't it?

Fix that in -dev packages are better. But in this case, I found the
package already has `github.com/deckarep/golang-set` provides by
golang-github-deckarep-golang-set-dev package in it's build-deps.
Somehow dh-golang didn't detects it's mapping automaticlly.

For check the root of the issue, I found
`github.com/deckarep/golang-set` is listed in the 2nd require block in
go.mod file, maybe that's why that dh-golang is missing it's mapping:
  
https://salsa.debian.org/go-team/packages/yubikey-touch-detector/-/blob/debian/sid/go.mod

Best regards,
-- 
-Andrew

Reply via email to