From 7b569127f662e6d42d4865e26e2429fd3be84e2e Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" <4903+rboyer@users.noreply.github.com> Date: Wed, 2 Mar 2022 14:18:26 -0600 Subject: [PATCH] build: ensure 'make linux' puts the binary in the expected location (#12494) Fixes regression from #10833 Fixes dev-docker and test-docker targets --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index c24df9308..7737f978d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -178,8 +178,8 @@ endif # linux builds a linux binary independent of the source platform linux: - mkdir -p bin - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin -ldflags "$(GOLDFLAGS)" -tags "$(GOTAGS)" + @mkdir -p ./pkg/bin/linux_amd64 + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./pkg/bin/linux_amd64 -ldflags "$(GOLDFLAGS)" -tags "$(GOTAGS)" # dist builds binaries for all platforms and packages them for distribution dist: