Hi,

On Mon, 14 Sept 2026 at 16:23, Andrew Lee <[email protected]> wrote:
>
> On Mon, Sep 14, 2026 at 8:36 AM Otto Kekäläinen <[email protected]> wrote:
> > I ran into this same issue with Trufflehog:
> >
> > src/github.com/trufflesecurity/trufflehog/v3/main.go:13:2:
> > github.com/couchbase/gocb/[email protected] requires
> > github.com/couchbaselabs/gocaves/[email protected]:
> > module lookup disabled by GOPROXY=off
> > src/github.com/trufflesecurity/trufflehog/v3/main.go:14:2:
> > github.com/couchbase/gocb/[email protected] requires
> > github.com/couchbaselabs/gocaves/[email protected]:
> > module lookup disabled by GOPROXY=off
> > src/github.com/trufflesecurity/trufflehog/v3/main.go:15:2:
> > github.com/couchbase/gocb/[email protected] requires
> > github.com/couchbaselabs/gocaves/[email protected]:
> > module lookup disabled by GOPROXY=off
>
> When we got such issue. we may simple query it from Go Proxy / pkg.go.dev.
> And then we will found `github.com/couchbase/gocb/v2` version `v2.12.5`.
>
> And we have this legacy version in debian that doesn't ship the module
> in correct path
> golang-github-couchbase-gocb-dev | 2.6.3-1       | unstable   | all
> golang-github-couchbase-gocb-dev:
> /usr/share/gocode/src/github.com/couchbase/gocb/go.mod
>
> The recommended fix:
> Fork the repo, rename the package with updated XS-Go-Import-Path in
> debian/control to ship the module with correct path with /v2 on the
> filesystem for the new tooling to locate the module correctly in the
> build environment.

Ack. Is it enough to rename the binary package, or does the source
package also need to have -v2 in it?

> > This github.com/couchbaselabs/gocaves/client is vendored inside two Go 
> > packages:
> >
> > ii  golang-github-couchbase-gocb-dev     2.6.3-1      all
> > Couchbase Go SDK (library)
> > ii  golang-github-couchbase-gocbcore-dev 10.2.3-1     all          IO
> > component of gocb (library)
> >
> > golang-github-couchbase-gocbcore-dev:
> > /usr/share/gocode/src/github.com/couchbase/gocbcore/vendor/github.com/couchbaselabs/gocaves/client/go.mod
> > golang-github-couchbase-gocb-dev:
> > /usr/share/gocode/src/github.com/couchbase/gocb/vendor/github.com/couchbaselabs/gocaves/client/go.mod
>
> Any specific reason to have the module duplicated as vendored module
> inside two packages? Do these two packages use different versions of
> this module that conflict with each other? Also, how do we plan to
> track and maintain these vendored copies over time?

Indeed, I didn't review these two thoroughly enough when sponsoring
Mikhail - we should not have had it twice, and will work with him to
remove one of them:

https://salsa.debian.org/go-team/packages/golang-github-couchbase-gocbcore/-/tree/debian/latest/debian/vendor
https://salsa.debian.org/go-team/packages/golang-github-couchbase-gocb/-/tree/debian/latest/debian/vendor

..
> > Should I be able to use DH_GOLANG_MODULE_MAPPINGS to get past this? If
> > so, what is the correct syntax?
..
> No, DH_GOLANG_MODULE_MAPPINGS was an experimental feature in early
> dh-golang version 1.66~exp+ for module support and currently does not
> work as expected for this use case, and it will likely be removed or
> deprecated in future toolchain updates.

Ack!

Reply via email to