Skip to contentSkip to conversation

go-mod.bbclass: use append to add `modcacherw`

PATCH In review Peter A. Bigot 2 participants 2 messages Sep 26, 2020

lore
Share & tools
lore
#0 lore raw

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.

---
 meta/classes/go-mod.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/go-mod.bbclass +1 -1
index 5871d025067..cabb04d0ec0 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw

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 -trimpath from the base class.

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