diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2024-02-28 18:30:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-03 16:28:21 +0000 |
commit | f92e32957c84a15b997c8e8d89d11598c42ae261 (patch) | |
tree | d1be2e5f33ca1a1bd2d8951a09ae79dd638369d3 | |
parent | fd2e5e0b89d9c69acc9f813f07cd052630596ad5 (diff) | |
download | poky-f92e32957c84a15b997c8e8d89d11598c42ae261.tar.gz |
oeqa/gotoolchain: set GOPROXY
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
(From OE-Core rev: c491d967858c01fead21495f44f1a9f8cdf8e833)
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/selftest/cases/gotoolchain.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/gotoolchain.py b/meta/lib/oeqa/selftest/cases/gotoolchain.py index 74c1c48117..ee2cf4b09a 100644 --- a/meta/lib/oeqa/selftest/cases/gotoolchain.py +++ b/meta/lib/oeqa/selftest/cases/gotoolchain.py | |||
@@ -54,6 +54,7 @@ class oeGoToolchainSelfTest(OESelftestTestCase): | |||
54 | cmd = cmd + "export GOPATH=%s; " % self.go_path | 54 | cmd = cmd + "export GOPATH=%s; " % self.go_path |
55 | cmd = cmd + "export GOFLAGS=-modcacherw; " | 55 | cmd = cmd + "export GOFLAGS=-modcacherw; " |
56 | cmd = cmd + "export CGO_ENABLED=1; " | 56 | cmd = cmd + "export CGO_ENABLED=1; " |
57 | cmd = cmd + "export GOPROXY=https://proxy.golang.org,direct; " | ||
57 | cmd = cmd + "${CROSS_COMPILE}go %s" % gocmd | 58 | cmd = cmd + "${CROSS_COMPILE}go %s" % gocmd |
58 | return runCmd(cmd).status | 59 | return runCmd(cmd).status |
59 | 60 | ||