summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2022-04-26 11:59:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-04 13:07:34 +0100
commit5c91954b7d1d426eaaf2b426a06fc9549d0f7134 (patch)
tree9d29083cef398d3b2387204920fac2424d2a2dbb /meta/classes
parent04ab58c85d6ea4871d5d77df78881a47719ad423 (diff)
downloadpoky-5c91954b7d1d426eaaf2b426a06fc9549d0f7134.tar.gz
go.bbclass: disable the use of the default configuration file
We need to disable the use the default configuration file. This is to ensure that user settings do not mess things up when building go recipes. For example, if I set 'GOBIN=./relative/path' in $HOME/.config/go/env, then go-runtime fails to build with error like below: cannot install, GOBIN must be an absolute path According to `go help environment', """ Setting GOENV=off in the environment disables the use of the default configuration file. """ We can explicitly disable the configuration file by setting GOENV to off. (From OE-Core rev: 00f794aeaaa660851f3a8464ee89c553195dd3dd) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 711b41744ab08ee62c71cdccca335a7828ec0ba1) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/go.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 9c4c92bffd..f3d83febbf 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -67,6 +67,7 @@ GO_INSTALL_FILTEROUT ?= "${GO_IMPORT}/vendor/"
67 67
68B = "${WORKDIR}/build" 68B = "${WORKDIR}/build"
69export GOPATH = "${B}" 69export GOPATH = "${B}"
70export GOENV = "off"
70export GOTMPDIR ?= "${WORKDIR}/build-tmp" 71export GOTMPDIR ?= "${WORKDIR}/build-tmp"
71GOTMPDIR[vardepvalue] = "" 72GOTMPDIR[vardepvalue] = ""
72 73