]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
go: Check if GO_IMPORT is set in recipe and error if not
authorChristos Gavros <gavrosc@yahoo.com>
Sun, 2 Mar 2025 17:01:32 +0000 (18:01 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Mar 2025 18:00:47 +0000 (18:00 +0000)
commit374a91204bdaf44067f6b0ae89ed60934751efaa
treec052c24d2c942010288c4937ba06bd515bac11aa
parentb0770990a8b332dd2de802091164c9506882a465
go: Check if GO_IMPORT is set in recipe and error if not

Check if the variable GO_IMPORT is
set in the recipe. If not generate an error.
Test building go-helloworld when GO_IMPORT assigned
Test building go-helloworld when GO_IMPORT is not assigned, generate error about GO_IMPORT
Test building any other recipe(e.g bash) when GO_IMPORT is not assigned, generate error about GO_IMPORT
Test creating a GO recipe with recipetool (not affected)
Test selftest test_recipetool_create_go (not affected)
Test selftest test_recipetool_create_go_replace_modules (not affected)

[YOCTO #15763]

CC: Yoann Congal <yoann.congal@smile.fr>
CC: Randy MacLeod <randy.macleod@windriver.com>
Signed-off-by: Christos Gavros <gavrosc@yahoo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/go.bbclass