diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2022-04-26 11:59:09 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-26 22:23:02 +0100 |
commit | 9c745b6a4c9b61d7f5be49f647e613534fbb57fd (patch) | |
tree | 3695b24727d939b60cfee6ee6a2269e07138419f /meta-poky | |
parent | 284b61d386741053522593b3bd2417de6ce54fc1 (diff) | |
download | poky-9c745b6a4c9b61d7f5be49f647e613534fbb57fd.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: 711b41744ab08ee62c71cdccca335a7828ec0ba1)
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>
Diffstat (limited to 'meta-poky')
0 files changed, 0 insertions, 0 deletions