Hi Félix

On Wed, Jul 15, 2026 at 10:47 PM Andrew Lee <[email protected]> wrote:
[..skip]...
> You can workaround by adding DH_GOLANG_MODULE_MAPPINGS variable to
> your debian/rules file using the following format:
>
> DH_GOLANG_MODULE_MAPPINGS :=
> github.com/peterbourgon/ff/v3:github.com/peterbourgon/ff

After read Mathias's mail. I think use debian/links to create a
symbolink would be much beautiful fix.
You may add debian/links in golang-github-peterbourgon-ff-dev:
usr/share/gocode/src/github.com/peterbourgon/ff
usr/share/gocode/src/github.com/peterbourgon/ff/v3

This way we may update XS-Go-Import-Path to match go.mod. And also
keep legacy path works for legacy packages. And we may keep
debian/rules clean without hardcode DH_GOLANG_MODULE_MAPPINGS.

I will document this in the wiki for the Sprint then.

Happy hacking,
-- 
-Andrew

Reply via email to