From 23e3540ba31afc726bc4e53689ec8bb163a247f2 Mon Sep 17 00:00:00 2001 From: misraved Date: Mon, 21 Oct 2024 15:28:57 +0530 Subject: [PATCH] Update Makefile and .goreleaser to include netgo package --- .goreleaser.yml | 2 ++ Makefile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 4632061..63891a3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -18,6 +18,8 @@ builds: id: "steampipe" binary: "{{ .ProjectName }}.plugin" + flags: + - -tags=netgo archives: - format: gz diff --git a/Makefile b/Makefile index 1046cff..abcabd7 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,4 @@ +STEAMPIPE_INSTALL_DIR ?= ~/.steampipe +BUILD_TAGS = netgo install: - go build -o ~/.steampipe/plugins/hub.steampipe.io/plugins/turbot/zoom@latest/steampipe-plugin-zoom.plugin *.go + go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/zoom@latest/steampipe-plugin-zoom.plugin -tags "${BUILD_TAGS}" *.go