go offline builds

Elan Ruusamäe glen at pld-linux.org
Tue Sep 7 08:11:04 CEST 2021


On 07.09.2021 08:58, Elan Ruusamäe wrote:
>
> http://buildlogs.pld-linux.org//index.php?dist=th&arch=x86_64&ok=0&name=gitlab-runner&id=5c82ef48-a66a-4a3e-aa01-f8a19d9f0ac9&action=tail
>
> so, how to tell go not to try to download and test those .mod files?
>
>
> + go build -ldflags '-X 
> gitlab.com/gitlab-org/gitlab-runner/common.VERSION=13.12.0 -X 
> gitlab.com/gitlab-org/gitlab-runner/common.REVISION=05161b14 -X 
> gitlab.com/gitlab-org/gitlab-runner/common.BRANCH=v13.12.0 -X 
> gitlab.com/gitlab-org/gitlab-runner/common.BUILT=2021-09-06T14:31:59+00:00 
> -B 0xa57b752b73b6887bec85d38cc0f611b460527f0e' -a -v go:cloud.google.com/go/storage at v1.12.0: Get"https://proxy.golang.org/cloud.google.com/go/storage/@v/v1.12.0.mod": dial tcp 142.250.203.209:443: connect: connection refused
> error: Bad exit status from /tmp/B.u4171lt3/BUILD/tmp/rpm-tmp.NIo6js 
> (%build)

seems the fix was to force -mod=vendor:

https://github.com/pld-linux/gitlab-runner/commit/19c2ece1b357713056e21c35eb9c44acffa056df



More information about the pld-devel-en mailing list