Skip to contentSkip to conversation

consul: export GO111MODULE=off

PATCH In review Chen Qi 2 participants 2 messages Mar 16, 2021

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 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.

---
 recipes-connectivity/consul/consul_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-connectivity/consul/consul_git.bb +4 -0
index b96499c4..f4955e2a 100644
@@ -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
Signature · 1 line
2.30.2
#1 lore raw

merged.

Bruce

In message: [meta-virtualization] [PATCH] consul: export GO111MODULE=off

Quoted 31 lines · on 16/03/2021 Chen Qi wrote:

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.

---
 recipes-connectivity/consul/consul_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-connectivity/consul/consul_git.bb +4 -0
index b96499c4..f4955e2a 100644
@@ -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
Signature · 1 line
2.30.2