summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/go-mod.bbclass
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2023-11-16 14:33:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-20 15:30:52 +0000
commit9b8c59b16538ac212b9e36774a106fd5a356553d (patch)
treec534a8b5d8ff43e031e494b0ca9955cba40340aa /meta/classes-recipe/go-mod.bbclass
parentb8ae444d3464f5354b1bfb259a3c0df818f4071b (diff)
downloadpoky-9b8c59b16538ac212b9e36774a106fd5a356553d.tar.gz
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>
Diffstat (limited to 'meta/classes-recipe/go-mod.bbclass')
-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 61571596bc..ca3a690d05 100644
--- a/meta/classes-recipe/go-mod.bbclass
+++ b/meta/classes-recipe/go-mod.bbclass
@@ -24,3 +24,7 @@ inherit go
24 24
25GO_WORKDIR ?= "${GO_IMPORT}" 25GO_WORKDIR ?= "${GO_IMPORT}"
26do_compile[dirs] += "${B}/src/${GO_WORKDIR}" 26do_compile[dirs] += "${B}/src/${GO_WORKDIR}"
27
28export GOMODCACHE = "${B}/.mod"
29
30do_compile[cleandirs] += "${B}/.mod"