diff options
| author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2023-11-16 14:33:00 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-20 15:30:52 +0000 |
| commit | 9b8c59b16538ac212b9e36774a106fd5a356553d (patch) | |
| tree | c534a8b5d8ff43e031e494b0ca9955cba40340aa /meta/classes-recipe | |
| parent | b8ae444d3464f5354b1bfb259a3c0df818f4071b (diff) | |
| download | poky-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')
| -rw-r--r-- | meta/classes-recipe/go-mod.bbclass | 4 |
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 | ||
| 25 | GO_WORKDIR ?= "${GO_IMPORT}" | 25 | GO_WORKDIR ?= "${GO_IMPORT}" |
| 26 | do_compile[dirs] += "${B}/src/${GO_WORKDIR}" | 26 | do_compile[dirs] += "${B}/src/${GO_WORKDIR}" |
| 27 | |||
| 28 | export GOMODCACHE = "${B}/.mod" | ||
| 29 | |||
| 30 | do_compile[cleandirs] += "${B}/.mod" | ||
