]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
go-mod.bbclass: Calculate GO_MOD_CACHE_DIR relative to ${UNPACKDIR}
authorPeter Kjellerstedt <pkj@axis.com>
Fri, 27 Jun 2025 13:48:42 +0000 (14:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Jul 2025 07:47:23 +0000 (08:47 +0100)
Adapt to the recent move of S from ${WORKDIR} to ${UNPACKDIR}.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/go-mod.bbclass

index 93ae72235ff5342d6e1ee3bb5152ea8b370eaf42..a15dda8f0ee3b2a4aa5fc118b3a5bd1d36e14256 100644 (file)
@@ -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}"