From: Stefan Herbrechtsmeier Date: Thu, 16 Nov 2023 13:33:00 +0000 (+0100) Subject: classes: go-mod: do not pack go mod cache X-Git-Tag: yocto-5.2~4567 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=328bea56dec8f83b5c118f567e122510f9243087;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git classes: go-mod: do not pack go mod cache Clean go module cache from builddir to prevent it of beeing packed. Signed-off-by: Stefan Herbrechtsmeier Signed-off-by: Lukas Funke Signed-off-by: Alexandre Belloni --- diff --git a/meta/classes-recipe/go-mod.bbclass b/meta/classes-recipe/go-mod.bbclass index 61571596bcf..ca3a690d05e 100644 --- a/meta/classes-recipe/go-mod.bbclass +++ b/meta/classes-recipe/go-mod.bbclass @@ -24,3 +24,7 @@ inherit go GO_WORKDIR ?= "${GO_IMPORT}" do_compile[dirs] += "${B}/src/${GO_WORKDIR}" + +export GOMODCACHE = "${B}/.mod" + +do_compile[cleandirs] += "${B}/.mod"