summaryrefslogtreecommitdiffstats
path: root/meta/classes/go-mod.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/go-mod.bbclass')
-rw-r--r--meta/classes/go-mod.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/go-mod.bbclass b/meta/classes/go-mod.bbclass
index 674d2434e0..1ad782a304 100644
--- a/meta/classes/go-mod.bbclass
+++ b/meta/classes/go-mod.bbclass
@@ -18,3 +18,7 @@ inherit go
GO_WORKDIR ?= "${GO_IMPORT}"
do_compile[dirs] += "${B}/src/${GO_WORKDIR}"
+
+export GOMODCACHE = "${B}/.mod"
+
+do_compile[cleandirs] += "${B}/.mod"