build: ensure 'make linux' puts the binary in the expected location (#12494)

Fixes regression from #10833

Fixes dev-docker and test-docker targets
This commit is contained in:
R.B. Boyer 2022-03-02 14:18:26 -06:00 committed by GitHub
parent 06e2cb4821
commit 7b569127f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -178,8 +178,8 @@ endif
# linux builds a linux binary independent of the source platform # linux builds a linux binary independent of the source platform
linux: linux:
mkdir -p bin @mkdir -p ./pkg/bin/linux_amd64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin -ldflags "$(GOLDFLAGS)" -tags "$(GOTAGS)" 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 builds binaries for all platforms and packages them for distribution
dist: dist: