Hi team, I have ported `amfora` to modern, module-aware builds in experimental.
While porting that, I found dh-golang coundn't properly map some dependencies correctly. I think this might come from some -dev packages without proper dependencies that not sync'ed with all the requires modules in it's go.mod file. So I use the DH_GOLANG_MODULE_MAPPINGS variable in debian/rules for a workaround on such edge case. This variable allows us to manually append mapping to Go module import path to its actull directory installed on the filesystem during module-aware builds. You can see these as an example: https://salsa.debian.org/go-team/packages/amfora/-/blob/master/debian/rules Hope this example helps to port your package into modern, module-aware builds. Happy hacking, -- -Andrew
