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 00e1c36 commit 97e3015
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Makefile sure to check the documentation at http://goreleaser.com
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod tidy
Expand All @@ -11,12 +11,15 @@ builds:
goos:
- linux
- darwin

goarch:
- amd64
- arm64

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/onepassword@latest/steampipe-plugin-onepassword.plugin *.go
go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/onepassword@latest/steampipe-plugin-onepassword.plugin -tags "${BUILD_TAGS}" *.go

0 comments on commit 97e3015

Please sign in to comment.