On Fri, Jan 15, 2021 at 2:24 PM Michael Ströder
On 1/15/21 8:14 PM, Neal Gompa wrote:
On Fri, Jan 15, 2021 at 2:09 PM Michael Ströder
wrote: I'm trying to build a Go package on https://build.opensuse.org and it seems the Go modules are downloaded via proxy.golang.org.
Some packages seem to download just fine but one fails:
dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:58763->[::1]:53: read: connection refused
I guess the DNS resolver trys to switch to TCP but this gets blocked.
Never built a Go package before so I'm not sure whether it's correct [1].
I guess the Go compiler in openSUSE is missing a patch to disable the mandatory proxy used for fetching dependencies from the internet.
https://src.fedoraproject.org/rpms/golang/blob/master/f/0003-cmd-go-disable-...
Without that, Go compiler builds that use modules (even vendored) can fail.
But how does OBS get the Go modules, if not via proxy? AFAIK OBS has only *very* limited access to the outside.
It doesn't get them at all. There is no access to the outside in the OBS build environment. You need to generate a vendor tarball and add it as a source. Or package up the dependencies and add them as BuildRequires. -- 真実はいつも一つ!/ Always, there's only one truth!