From: Christian Lindeberg <[email protected]> To keep the module cache logic in the go module fetchers simple, the unpacking of the module zip files in the module cache directory is left to the go install command in do_compile. So for do_populate_lic to find the license files of module dependencies, do_compile needs to run before do_populate_lic.
Signed-off-by: Christian Lindeberg <[email protected]> --- meta/classes-recipe/go-mod.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/classes-recipe/go-mod.bbclass b/meta/classes-recipe/go-mod.bbclass index 2083d7f2d1..93ae72235f 100644 --- a/meta/classes-recipe/go-mod.bbclass +++ b/meta/classes-recipe/go-mod.bbclass @@ -28,3 +28,7 @@ do_unpack[cleandirs] += "${GOMODCACHE}" GO_WORKDIR ?= "${GO_IMPORT}" do_compile[dirs] += "${B}/src/${GO_WORKDIR}" + +# 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 -- 2.39.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#204614): https://lists.openembedded.org/g/openembedded-core/message/204614 Mute This Topic: https://lists.openembedded.org/mt/108496933/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
