From 9ebdb93534cd4048a236b10b98aeba395849565a Mon Sep 17 00:00:00 2001 From: Jeev B Date: Tue, 11 Apr 2023 21:22:25 -0700 Subject: [PATCH] Infer GOOS and GOARCH from environment (#103) Signed-off-by: Jeev B --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d9b244f5..a4d7f680 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,10 @@ compile: go build -o datacatalog ./cmd/main.go && mv ./datacatalog ./bin .PHONY: linux_compile +linux_compile: export CGO_ENABLED = 0 +linux_compile: export GOOS = linux linux_compile: - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /artifacts/datacatalog ./cmd/ + go build -o /artifacts/datacatalog ./cmd/ .PHONY: generate generate: