From: Peter Kjellerstedt Date: Fri, 27 Jun 2025 13:48:42 +0000 (+0100) Subject: go-mod.bbclass: Calculate GO_MOD_CACHE_DIR relative to ${UNPACKDIR} X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f8218c62637208259a94979fe9a8a9b672e4ea4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git go-mod.bbclass: Calculate GO_MOD_CACHE_DIR relative to ${UNPACKDIR} Adapt to the recent move of S from ${WORKDIR} to ${UNPACKDIR}. Signed-off-by: Peter Kjellerstedt Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/go-mod.bbclass b/meta/classes-recipe/go-mod.bbclass index 93ae72235ff..a15dda8f0ee 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}"