[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems with initial packaging of sptlrx





On 25/10/24 02:13, Martin Dosch wrote:
Dear all,

seems I am one step further with adding the following in d/rules:

```
override_dh_auto_build:
     cd _build && go install -trimpath -v -p 7 github.com/raitonoberu/sptlrx
```

Please see my previous mail :)

Now I have only one weird build failure:

```
cd _build && go install -trimpath -v -p 7 github.com/raitonoberu/sptlrx
github.com/Pauloo27/go-mpris@v1.4.0: Get "https://proxy.golang.org/github.com/%21pauloo27/go-mpris/@v/v1.4.0.mod": tls: failed to verify certificate: x509: certificate signed by unknown authority
make[1]: *** [debian/rules:7: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
```

I don't understand why it tries to acces the internet now… :(

go install will try to fetch dependencies in GOPATH, this is not set outside of the go debhelper so it is probably set
to $HOME/go and it is trying to pull in dependencies there.

You may need to export it explicitly but none of that is needed once you fix import-path or the module in go.mod and rest of the
package thereof.

Thanks
Nilesh


Best regards,
Martin.


Reply to: