Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions meta-balena-common/recipes-containers/mobynit/mobynit_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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() {
Expand Down
Loading