From f91c852fa640d7c27f0ce5f234a52c9cfeb802f9 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 1 Jun 2022 15:38:01 +0200 Subject: [PATCH] Makefile: force podman-remote-static to linux Some of the targets overwrite $GOOS. Since podman-remote-static should always build for linux we can force linux GOOS here. Fixes #14201 Signed-off-by: Paul Holzinger --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fb9eb057df..2995aed652 100644 --- a/Makefile +++ b/Makefile @@ -295,7 +295,7 @@ $(SRCBINDIR)/podman$(BINSFX): $(SRCBINDIR) $(SOURCES) go.mod go.sum $(SRCBINDIR)/podman-remote-static: $(SRCBINDIR) $(SOURCES) go.mod go.sum CGO_ENABLED=0 \ - GOOS=$(GOOS) \ + GOOS=linux \ GOARCH=$(GOARCH) \ $(GO) build \ $(BUILDFLAGS) \