summaryrefslogtreecommitdiff
path: root/recipes-containers/docker/docker-moby.bbappend
diff options
context:
space:
mode:
authorSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2022-11-15 19:00:37 +0200
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2022-11-15 19:25:17 +0200
commit127aa9bbd8e2c750b9eca734678527d7285abbb4 (patch)
treeba1ae6be7c8554c8850a82c3d93f0b32792c5180 /recipes-containers/docker/docker-moby.bbappend
parent2c2b0bd02c31fde0652cd42b51bc82cbfda1ef4a (diff)
downloadmeta-mlinux-127aa9bbd8e2c750b9eca734678527d7285abbb4.tar.gz
meta-mlinux-127aa9bbd8e2c750b9eca734678527d7285abbb4.tar.bz2
meta-mlinux-127aa9bbd8e2c750b9eca734678527d7285abbb4.zip
Docker: Fixed builds after updating to Golang 1.16.x
Original idea from Yocto 3.3 Hardknott: - https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/containerd/containerd-opencontainers_git.bb?h=hardknott&id=8597d4e3a973ac7e78483fb3ab0e19dbcc681913 - https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/docker/docker-moby.bb?h=hardknott&id=dc1713bec31ecd52a9715fd528253b26140f69d3 Description of the issue, a change in the Golang behavior regarding `GO111MODULE` since Golang 1.16.x: - https://forum.golangbridge.org/t/compilation-changes-in-go-1-16-go-build-throws-error/22457.
Diffstat (limited to 'recipes-containers/docker/docker-moby.bbappend')
-rw-r--r--recipes-containers/docker/docker-moby.bbappend6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-containers/docker/docker-moby.bbappend b/recipes-containers/docker/docker-moby.bbappend
new file mode 100644
index 0000000..fba7110
--- /dev/null
+++ b/recipes-containers/docker/docker-moby.bbappend
@@ -0,0 +1,6 @@
+# Fix build issues with Go version 1.16.x. Remove this bbappend in Yocto
+# version 3.3 and newer.
+# Fix in the upstream Yocto: https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/docker/docker-moby.bb?h=hardknott&id=dc1713bec31ecd52a9715fd528253b26140f69d3
+do_compile_prepend() {
+ export GO111MODULE=off
+}