diff --git a/.goreleaser.yml b/.goreleaser.yml index 6508f36..63891a3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: diff --git a/Makefile b/Makefile index 267d122..6da64ff 100644 --- a/Makefile +++ b/Makefile @@ -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