Hi Otto,

I didn’t really check into the issue. Have you forked the build-deps
package with versioned import path?

The symlink hacks for GOPATH won’t work under module-aware builds and
should goes away after the transition.

Happy hacking,

-Andrew

Otto Kekäläinen <[email protected]>於 2026年9月7日週一,20:50寫道:

> Hi,
>
> The wiki page
> https://wiki.debian.org/Teams/DebianGoTeam/MigrationFAQ?pow_referer=#Align_XS-Go-Import-Path
> is pretty clear on the Go import path needing to be versioned and it
> is an easy fix. However, that isn't enough for both Glow and
> Trufflehog. After updating the import paths the builds now fail on
> messages like:
>
> src/github.com/charmbracelet/glow/v2/main.go:16:2:
> github.com/dlclark/[email protected] (replaced by
> ./src/github.com/dlclark/regexp2): reading
> src/github.com/dlclark/regexp2/go.mod: open
> /debcraft/source/debian/.build/upstream/src/
> github.com/dlclark/regexp2/go.mod:
> no such file or directory
>
> src/
> github.com/trufflesecurity/trufflehog/v3/pkg/pb/sourcespb/sources.pb.go:15:2
> :
> github.com/alecthomas/[email protected] (replaced by
> ./src/github.com/alecthomas/chroma): reading
> src/github.com/alecthomas/chroma/go.mod: open
> /debcraft/source/debian/_build/src/github.com/alecthomas/chroma/go.mod:
> no such file or directory
>
> Both dependencies exist, but they only include a symlink to the source
> directory:
>
> ± ll ./debian/_build/src/github.com/alecthomas/chroma/
> Permissions Size User Date Modified Name
> lrwxrwxrwx     - otto  7 Sep 21:04  v2 ->
> /usr/share/gocode/src/github.com/alecthomas/chroma/v2
>
> ± ll ./debian/.build/upstream/src/github.com/dlclark/regexp2
> Permissions Size User Date Modified Name
> lrwxrwxrwx     - otto  7 Sep 21:03  v2 ->
> /usr/share/gocode/src/github.com/dlclark/regexp2/v2
>
>
> Can someone explain what is happening here in plain terms, and what
> the likely fix is?
>
>
> Thanks,
>
> Otto
>

Reply via email to