testing/flux: fix build with go 1.22

This commit is contained in:
Andy Postnikov 2024-02-17 23:34:17 +01:00
parent 1202aab4d7
commit a57fee869a

View File

@ -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: