diff mbox series

go-mod.bbclass: Calculate GO_MOD_CACHE_DIR relative to ${UNPACKDIR}

Message ID 20250626160317.2452268-1-pkj@axis.com
State New
Headers show
Series go-mod.bbclass: Calculate GO_MOD_CACHE_DIR relative to ${UNPACKDIR} | expand

Commit Message

Peter Kjellerstedt June 26, 2025, 4:03 p.m. UTC
Adapt to the recent move of S from ${WORKDIR} to ${UNPACKDIR}.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta/classes-recipe/go-mod.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/go-mod.bbclass b/meta/classes-recipe/go-mod.bbclass
index 93ae72235f..a15dda8f0e 100644
--- a/meta/classes-recipe/go-mod.bbclass
+++ b/meta/classes-recipe/go-mod.bbclass
@@ -23,7 +23,7 @@  GOBUILDFLAGS:append = " -modcacherw"
 inherit go
 
 export GOMODCACHE = "${S}/pkg/mod"
-GO_MOD_CACHE_DIR = "${@os.path.relpath(d.getVar('GOMODCACHE'), d.getVar('WORKDIR'))}"
+GO_MOD_CACHE_DIR = "${@os.path.relpath(d.getVar('GOMODCACHE'), d.getVar('UNPACKDIR'))}"
 do_unpack[cleandirs] += "${GOMODCACHE}"
 
 GO_WORKDIR ?= "${GO_IMPORT}"