]> code.ossystems Code Review - openembedded-core.git/commit
go-helloworld: disable module-aware mode
authorChangqing Li <changqing.li@windriver.com>
Mon, 22 Mar 2021 03:23:30 +0000 (11:23 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Mar 2021 22:51:20 +0000 (22:51 +0000)
commita0dc36d60809a0a937bbb02ec27ba768ef177063
treefc888ca04418b23b5254f9b0f6c9637049aa06fa
parentb6c2df341d7e6da5defca9a5567fdb7212489efa
go-helloworld: disable module-aware mode

>From go 1.16, module-aware mode is enabled by default, regardless of
whether a go.mod file is present in the current working directory or a
parent directory.

Above change makes go-helloworld build fail when doing offline build or
proxy.golang.org is not accessible.

This fix is kind of workaround, as from go1.17, GOPATH mode will be
dropped, and GO111MODULE is ignored.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/go-examples/go-helloworld_0.1.bb