On 06/10/25 9:36 pm, Nicolas Peugnet wrote:
The documentation of dh_golang [3] indicates that only the *first*
import path is used:
"DH_GOPKG" is automatically set to the value of the first import path of the "XS-Go-Import-Path" "debian/control" field, which can contain several comma-separated import paths.
In your case, riseup-vpn is looking for the Go package
"git.torproject.org/pluggable-transports/snowflake.git/common/encapsulation",
whereas the snowflake one provides only
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/encapsulation/",
which is a different import path.
Yep, I noticed this, but to my understanding DH_GOPKG matters for the package that we are
_currently_ building, IoW, it would matter for riseup-vpn itself as written in docs
https://manpages.debian.org/testing/dh-golang/Debian::Debhelper::Buildsystem::golang.3pm.en.html
| "DH_GOPKG" (string) contains the Go package name which this Debian package is building.
| "DH_GOPKG" is automatically set to the value of the first import path of the "XS-Go-Import-Path" "debian/control"
| field, which can contain several comma-separated import paths.
In this case, golang-snowflake-dev is a Build-Depends of riseup-vpn. Does DH_GOPKG also impact the
dependencies?