From a6c8c2247ef5e2bfb38e8ec4be7cfd4f3325c758 Mon Sep 17 00:00:00 2001 From: Ved misra <47312748+misraved@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:43:40 +0530 Subject: [PATCH] Update make file to build the netgo package for darwin system (#1918) --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c8dd9100f..866d5cd83 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,12 @@ -STEAMPIPE_INSTALL_DIR?=~/.steampipe +STEAMPIPE_INSTALL_DIR ?= ~/.steampipe + +# Determine the operating system +OS := $(shell uname) + +# Check if the OS is Mac OS/Darwin +ifeq ($(OS),Darwin) + BUILD_TAGS = netgo +endif install: - go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/aws@latest/steampipe-plugin-aws.plugin *.go + go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/aws@latest/steampipe-plugin-aws.plugin -tags "$(BUILD_TAGS)" *.go \ No newline at end of file