docker: fix build with go 1.12
authorJackie Huang <jackie.huang@windriver.com>
Wed, 14 Aug 2019 05:53:14 +0000 (13:53 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Thu, 10 Oct 2019 02:26:56 +0000 (10:26 +0800)
Fixed the issue:
| build cache is disabled by GOCACHE=off, but required as of Go 1.12

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I2062e2f527bcd537242f96d02f651972ab740d89

meta-oran/recipes-containers/docker/docker_%.bbappend

index 957e49b..78364e8 100644 (file)
@@ -1,5 +1,9 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
 
+do_compile_prepend() {
+    unset GOCACHE
+}
+
 do_install_append() {
     sed -i '/ExecStart=/a ExecStartPost=/usr/sbin/iptables -P FORWARD ACCEPT' ${D}${systemd_unitdir}/system/docker.service
 }