From: Stefan Herbrechtsmeier <stefan.herbrechtsme...@weidmueller.com>
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsme...@weidmueller.com> --- meta/classes-recipe/go-mod.bbclass | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/meta/classes-recipe/go-mod.bbclass b/meta/classes-recipe/go-mod.bbclass index 93ae72235f..04651ebd8a 100644 --- a/meta/classes-recipe/go-mod.bbclass +++ b/meta/classes-recipe/go-mod.bbclass @@ -22,13 +22,15 @@ GOBUILDFLAGS:append = " -modcacherw" inherit go -export GOMODCACHE = "${S}/pkg/mod" -GO_MOD_CACHE_DIR = "${@os.path.relpath(d.getVar('GOMODCACHE'), d.getVar('WORKDIR'))}" +export GOMODCACHE ?= "${S}/pkg/mod" +GO_MOD_CACHE_DIR ?= "${@os.path.relpath(d.getVar('GOMODCACHE'), d.getVar('WORKDIR'))}" do_unpack[cleandirs] += "${GOMODCACHE}" GO_WORKDIR ?= "${GO_IMPORT}" -do_compile[dirs] += "${B}/src/${GO_WORKDIR}" +GO_WORKPATH ?= "${B}/src/${GO_WORKDIR}" +do_compile[dirs] += "${GO_WORKPATH}" # Make go install unpack the module zip files in the module cache directory # before the license directory is polulated with license files. -addtask do_compile before do_populate_lic +GO_MOD_RECRDEPTASK = "do_populate_lic" +do_compile[recrdeptask] += "${GO_MOD_RECRDEPTASK}" -- 2.39.5
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#211137): https://lists.openembedded.org/g/openembedded-core/message/211137 Mute This Topic: https://lists.openembedded.org/mt/111123531/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-