From: Peter A. Bigot Date: Sat, 26 Sep 2020 10:53:09 +0000 (-0500) Subject: go-mod.bbclass: use append to add `modcacherw` X-Git-Tag: 2020-10-gatesgarth~152 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=a9d0a79e8d320174737263ce099a259d85a92ceb;p=openembedded-core.git go-mod.bbclass: use append to add `modcacherw` This class provided default build flags but includes the base go class which also provides default flags. Use a different mechanism to extend the default flags without discarding `-trimpath` from the base class. Signed-off-by: Peter A. Bigot Signed-off-by: Richard Purdie --- diff --git a/meta/classes/go-mod.bbclass b/meta/classes/go-mod.bbclass index 5871d02506..cabb04d0ec 100644 --- a/meta/classes/go-mod.bbclass +++ b/meta/classes/go-mod.bbclass @@ -12,7 +12,7 @@ # The '-modcacherw' option ensures we have write access to the cached objects so # we avoid errors during clean task as well as when removing the TMPDIR. -export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -modcacherw" +GOBUILDFLAGS_append = " -modcacherw" inherit go