classes: go-mod: do not pack go mod cache

Clean go module cache from builddir to prevent it of beeing packed.

(From OE-Core rev: 328bea56dec8f83b5c118f567e122510f9243087)

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Stefan Herbrechtsmeier
2023-11-16 14:33:00 +01:00
committed by Richard Purdie
parent b8ae444d34
commit 9b8c59b165

View File

@@ -24,3 +24,7 @@ inherit go
GO_WORKDIR ?= "${GO_IMPORT}" GO_WORKDIR ?= "${GO_IMPORT}"
do_compile[dirs] += "${B}/src/${GO_WORKDIR}" do_compile[dirs] += "${B}/src/${GO_WORKDIR}"
export GOMODCACHE = "${B}/.mod"
do_compile[cleandirs] += "${B}/.mod"