From 81dc3f183dd5278b0425f67917b2916087d497e5 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 8 Nov 2023 18:20:22 +0530 Subject: [PATCH] [CI:BUILD] rpm: disable GOPROXY GOPROXY is currently causing build issues like so: ``` go: github.com/containernetworking/cni@v0.7.1: GOPROXY list is not the empty string, but contains no entries ``` This commit sets `GOPROXY=direct` in rpm spec file. Ref: https://download.copr.fedorainfracloud.org/results/packit/containers-podman-20627/centos-stream+epel-next-9-aarch64/06611633-podman/builder-live.log.gz [NO NEW TESTS NEEDED] Signed-off-by: Lokesh Mandvekar --- rpm/podman.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpm/podman.spec b/rpm/podman.spec index 255349a170..3d2f8904ef 100644 --- a/rpm/podman.spec +++ b/rpm/podman.spec @@ -235,6 +235,8 @@ CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-specs=\/usr\/lib\/rpm\/redhat\/redhat-an export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full" %endif +export GOPROXY=direct + LDFLAGS="-X %{ld_libpod}/define.buildInfo=$(date +%s) \ -X %{ld_libpod}/config._installPrefix=%{_prefix} \ -X %{ld_libpod}/config._etcDir=%{_sysconfdir} \