From a878d3aedf0339cf121c0c933d9f3cfb526f56f9 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Tue, 16 Mar 2021 14:05:25 +0800 Subject: consul: export GO111MODULE=off With the latest go version bump in oe-core export GO111MODULE is on by default. Our build is not setup to use go modules, so we disable it and avoid configuration errors. Signed-off-by: Chen Qi Signed-off-by: Bruce Ashfield --- recipes-connectivity/consul/consul_git.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-connectivity/consul/consul_git.bb b/recipes-connectivity/consul/consul_git.bb index b96499c..f4955e2 100644 --- a/recipes-connectivity/consul/consul_git.bb +++ b/recipes-connectivity/consul/consul_git.bb @@ -28,6 +28,10 @@ COMPATIBLE_HOST_mipsarch = "null" SYSTEMD_SERVICE_${PN} = "consul.service" SYSTEMD_AUTO_ENABLE_${PN} = "disable" +do_compile_prepend () { + export GO111MODULE=off +} + do_install_append() { install -d ${D}/${systemd_unitdir}/system cp ${WORKDIR}/consul.service ${D}/${systemd_unitdir}/system -- cgit v1.2.3-54-g00ecf