classes: add go112.bbclass to fix build with go 1.12
[pti/rtp.git] / meta-oran / recipes-networking / cni / cni_git.bbappend
index 5fe571e..5f3f912 100644 (file)
@@ -2,9 +2,7 @@
 # Copyright (C) 2019 Wind River Systems, Inc.
 #
 
-do_compile_prepend() {
-    unset GOCACHE
-}
+inherit ${@bb.utils.contains('GOVERSION', '1.2.%', 'go112', '', d)}
 
 do_compile_append() {
     # build ipam plugins