]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
go.bbclass: set GOPROXY
authorJose Quaresma <quaresma.jose@gmail.com>
Thu, 7 Mar 2024 10:06:59 +0000 (02:06 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Mar 2024 08:06:14 +0000 (08:06 +0000)
commite0919a3f7bc26b1ea9fb57740de4a9a3b9253f26
tree5b7198becc58f88878070e4c934b29e98f31b663
parente017f405bf6ae6c269a8c9c981878fd1ad8666b6
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.

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/go.bbclass