From 4ee14fb2b19fd7529b36c7d012a2d3ed2319eeaf Mon Sep 17 00:00:00 2001 From: misraved Date: Mon, 21 Oct 2024 15:25:36 +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 5a6f3db..1aec355 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/rss@latest/steampipe-plugin-rss.plugin *.go + go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/rss@latest/steampipe-plugin-rss.plugin -tags "${BUILD_TAGS}" *.go