From faf702f9c25feccb03d21541e0c0493725306f42 Mon Sep 17 00:00:00 2001 From: Alexei Dodon Date: Sat, 19 Aug 2023 00:18:10 +0300 Subject: [PATCH] feat: automated detection of OS and ARCH if unset (#1711) Signed-off-by: Alexei Dodon --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2cc9ad8b..aac5f6a4 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,9 @@ SWAGGER_VERSION := v1.8.12 STACKER := $(TOOLSDIR)/bin/stacker BATS := $(TOOLSDIR)/bin/bats TESTDATA := $(TOP_LEVEL)/test/data -OS ?= linux -ARCH ?= amd64 +OS ?= $(shell go env GOOS) +ARCH ?= $(shell go env GOARCH) + BENCH_OUTPUT ?= stdout ALL_EXTENSIONS = debug,imagetrust,lint,metrics,mgmt,scrub,search,sync,ui,userprefs EXTENSIONS ?= sync,search,scrub,metrics,lint,ui,mgmt,userprefs,imagetrust