go-mod.bbclass: use append to add `modcacherw`
PATCH 1/1 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 <[email protected]>
--- meta/classes/go-mod.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/go-mod.bbclass +1 -1
@@ -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
Signature · 1 line
2.25.1
Em sáb., 26 de set. de 2020 às 07:53, Peter A. Bigot <[email protected]> escreveu:
Quoted 7 lines
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
-trimpathfrom the base class.Signed-off-by Peter A. Bigot <[email protected]>
Acked-by Otavio Salvador <[email protected]>
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750