Skip to content

Commit

Permalink
Update make file to build the netgo package for darwin system (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
misraved committed Sep 29, 2023
1 parent 2f1aaa2 commit a6c8c22
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions 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

0 comments on commit a6c8c22

Please sign in to comment.