Skip to contentSkip to conversation

go-crosssdk: avoid host contamination by GOCACHE

PATCH New [email protected] 1 participant 1 message Dec 11, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 go-crosssdk: avoid host contamination by GOCACHE

From: Robert Andersson <[email protected]>

By default GOCACHE is set to $HOME/.cache.

Same issue for all other go recipes had been fixed by commit 9a6d208b:
[ go: avoid host contamination by GOCACHE ]

but that commit missed go-crosssdk recipe.

---
 meta/recipes-devtools/go/go-crosssdk.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-devtools/go/go-crosssdk.inc +2 -0
index cd23cca2fe..766938670a 100644
@@ -4,6 +4,8 @@ DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc-crosssdk virtual/nativesdk-${TA
 PN = "go-crosssdk-${SDK_SYS}"
 PROVIDES = "virtual/${TARGET_PREFIX}go-crosssdk"
 
+export GOCACHE = "${B}/.cache"
+
 do_configure[noexec] = "1"
 
 do_compile() {
Signature · 1 line
2.25.1