summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2024-03-07 02:06:59 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-08 08:06:16 +0000
commitca829f14e0b0d44719229c1be1b3cbf2cee39b4e (patch)
tree6316e2b2fb50023b371a4f32940d828c09af0d78 /meta/classes-recipe
parente8384ba2fa3dc2b32f8f8e17464950475549bd86 (diff)
downloadpoky-ca829f14e0b0d44719229c1be1b3cbf2cee39b4e.tar.gz
go.bbclass: set GOPROXY
The GOPROXY is already correctly defined on the native sys root and this can be checked using the bitbake devshell: | $ go env GOPROXY | https://proxy.golang.org,direct The go_do_compile task calls the compiler directly so the GOPROXY env is not seen because it's not defined in the shell. Defining it explicitly solves this problem and was to avoid setting it in the recipes itself. (From OE-Core rev: e0919a3f7bc26b1ea9fb57740de4a9a3b9253f26) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/go.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-recipe/go.bbclass b/meta/classes-recipe/go.bbclass
index 39bfaa5156..cc3564c36a 100644
--- a/meta/classes-recipe/go.bbclass
+++ b/meta/classes-recipe/go.bbclass
@@ -78,6 +78,7 @@ GO_INSTALL_FILTEROUT ?= "${GO_IMPORT}/vendor/"
78B = "${WORKDIR}/build" 78B = "${WORKDIR}/build"
79export GOPATH = "${B}" 79export GOPATH = "${B}"
80export GOENV = "off" 80export GOENV = "off"
81export GOPROXY ??= "https://proxy.golang.org,direct"
81export GOTMPDIR ?= "${WORKDIR}/build-tmp" 82export GOTMPDIR ?= "${WORKDIR}/build-tmp"
82GOTMPDIR[vardepvalue] = "" 83GOTMPDIR[vardepvalue] = ""
83 84