From a57fee869a91678d07976290c4e52af3df58818d Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Sat, 17 Feb 2024 23:34:17 +0100 Subject: [PATCH] testing/flux: fix build with go 1.22 --- testing/flux/APKBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/flux/APKBUILD b/testing/flux/APKBUILD index 0c521ebf62e..58a2a55ff69 100644 --- a/testing/flux/APKBUILD +++ b/testing/flux/APKBUILD @@ -15,10 +15,14 @@ subpackages=" source="https://github.com/fluxcd/flux2/archive/v$pkgver/flux-$pkgver.tar.gz" builddir="$srcdir/flux2-$pkgver" -export CGO_ENABLED=0 export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" +case "$CARCH" in +aarch64|ppc64le|x86_64) + export CGO_ENABLED=0 + ;; +esac # secfixes: # 0.36.0-r0: