From: Chen Qi Date: Tue, 26 Apr 2022 03:59:09 +0000 (+0800) Subject: go.bbclass: disable the use of the default configuration file X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4316 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=711b41744ab08ee62c71cdccca335a7828ec0ba1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Chen Qi Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index df8d4db26de..1a9a0bc1d42 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass @@ -68,6 +68,7 @@ GO_INSTALL_FILTEROUT ?= "${GO_IMPORT}/vendor/" B = "${WORKDIR}/build" export GOPATH = "${B}" +export GOENV = "off" export GOTMPDIR ?= "${WORKDIR}/build-tmp" GOTMPDIR[vardepvalue] = ""