Skip to content

Commit

Permalink
Update Makefile and .goreleaser to include netgo package
Browse files Browse the repository at this point in the history
  • Loading branch information
misraved committed Oct 21, 2024
1 parent 2959df1 commit 430e4a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ builds:

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

archives:
- format: gz
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
files:
- none*
checksum:
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256
changelog:
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

STEAMPIPE_INSTALL_DIR ?= ~/.steampipe
BUILD_TAGS = netgo
install:
go build -o ~/.steampipe/plugins/hub.steampipe.io/plugins/turbot/steampipe@latest/steampipe-plugin-steampipe.plugin *.go


go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/steampipe@latest/steampipe-plugin-steampipe.plugin -tags "${BUILD_TAGS}" *.go

0 comments on commit 430e4a2

Please sign in to comment.