summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Lindeberg <christian.lindeberg@axis.com>2024-09-17 08:35:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-09-20 10:45:45 +0100
commit1f55d5c0a4ee6822a5f97e24808e3fe5981bf891 (patch)
treecd8296d20de1709ca390621d5c009594c6f305c1
parent773579da26c97ebd6e1cff3986487dfb6d6ceed3 (diff)
downloadpoky-1f55d5c0a4ee6822a5f97e24808e3fe5981bf891.tar.gz
go-mod.bbclass: Unpack module dependency license files
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. (From OE-Core rev: 35496654db325a4a904997be7a02fb04de74e9be) Signed-off-by: Christian Lindeberg <christian.lindeberg@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/go-mod.bbclass4
1 files changed, 4 insertions, 0 deletions
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}"
28 28
29GO_WORKDIR ?= "${GO_IMPORT}" 29GO_WORKDIR ?= "${GO_IMPORT}"
30do_compile[dirs] += "${B}/src/${GO_WORKDIR}" 30do_compile[dirs] += "${B}/src/${GO_WORKDIR}"
31
32# Make go install unpack the module zip files in the module cache directory
33# before the license directory is polulated with license files.
34addtask do_compile before do_populate_lic