]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
oeqa/gotoolchain: set GOPROXY
authorJose Quaresma <quaresma.jose@gmail.com>
Wed, 28 Feb 2024 18:30:08 +0000 (18:30 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 Mar 2024 16:28:17 +0000 (16:28 +0000)
Since go-1.21 GOPROXY needs to be set explicitly, otherwise it fails with:
- GOPROXY list is not the empty string, but contains no entries

This fixes the selftest

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/gotoolchain.py

index 74c1c4811732a1db0cc7fe3984c0a43285524197..ee2cf4b09a268ebe3538ad95ab6ac5e9f21bf98d 100644 (file)
@@ -54,6 +54,7 @@ class oeGoToolchainSelfTest(OESelftestTestCase):
         cmd = cmd + "export GOPATH=%s; " % self.go_path
         cmd = cmd + "export GOFLAGS=-modcacherw; "
         cmd = cmd + "export CGO_ENABLED=1; "
+        cmd = cmd + "export GOPROXY=https://proxy.golang.org,direct; "
         cmd = cmd + "${CROSS_COMPILE}go %s" % gocmd
         return runCmd(cmd).status