From 20f1483c66215503ec7fc98054496bee76830184 Mon Sep 17 00:00:00 2001 From: Dr Bill Mcilhargey <19168174+billmcilhargey@users.noreply.github.com> Date: Sun, 26 Apr 2026 05:39:57 +0000 Subject: [PATCH] mobynit: enhance GOPROXY configuration for resilience against network issues Change-type: minor --- .../recipes-containers/mobynit/mobynit_git.bb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/meta-balena-common/recipes-containers/mobynit/mobynit_git.bb b/meta-balena-common/recipes-containers/mobynit/mobynit_git.bb index 993bda32e2..8d6f3fa7d9 100644 --- a/meta-balena-common/recipes-containers/mobynit/mobynit_git.bb +++ b/meta-balena-common/recipes-containers/mobynit/mobynit_git.bb @@ -15,7 +15,11 @@ SRCREV="68b5fba96640392b591d27d243b891f657d7d02b" S = "${WORKDIR}/${BPN}/src/${GO_IMPORT}" -GOPROXY ??= "https://proxy.golang.org,direct" +# Use a resilient GOPROXY chain so the build does not fail when proxy.golang.org +# TLS-stalls or is otherwise unreachable from the build host. goproxy.io is a +# well-known mirror; "direct" lets the Go toolchain fall back to fetching the +# module straight from its VCS origin. +GOPROXY ??= "https://proxy.golang.org,https://goproxy.io,direct" do_compile[network] = "1" do_compile() { @@ -24,7 +28,9 @@ do_compile() { unset GOPATH GOROOT export GOCACHE="${B}/.cache" export GOPROXY="${GOPROXY}" - oe_runmake + # Retry once on transient network failures (TLS stalls against module + # proxies have been observed from some build hosts). + oe_runmake || oe_runmake } do_install() {