Skip to content

Commit

Permalink
Update the Makefile and the .goreleaser file to build the netgo packa…
Browse files Browse the repository at this point in the history
…ge for both Linux and Darwin systems (#219)
  • Loading branch information
misraved authored May 8, 2024
1 parent 25f828a commit 5944b71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ builds:

id: "steampipe"
binary: "{{ .ProjectName }}.plugin"
flags:
- -tags=netgo

archives:
- format: gz
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
STEAMPIPE_INSTALL_DIR ?= ~/.steampipe
BUILD_TAGS = netgo
install:
go build -o ~/.steampipe/plugins/hub.steampipe.io/plugins/turbot/kubernetes@latest/steampipe-plugin-kubernetes.plugin *.go
go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/kubernetes@latest/steampipe-plugin-kubernetes.plugin -tags "${BUILD_TAGS}" *.go

0 comments on commit 5944b71

Please sign in to comment.