From 60cbf23bccf50f837ba04cf95c4a7610b4fbc897 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Wed, 3 Nov 2021 11:46:24 -0400 Subject: [PATCH] Fix CGO stuff for sqlite --- .goreleaser.yml | 4 +--- Makefile | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index a71e1042..2090144d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,11 +4,9 @@ before: builds: - binary: ntfy env: - - CGO_ENABLED=0 + - CGO_ENABLED=1 # required for go-sqlite3 goos: - linux - - windows - - darwin goarch: - amd64 nfpms: diff --git a/Makefile b/Makefile index 109e6db6..117d3fae 100644 --- a/Makefile +++ b/Makefile @@ -94,6 +94,7 @@ build-snapshot: build-simple: clean mkdir -p dist/ntfy_linux_amd64 + export CGO_ENABLED=1 $(GO) build \ -o dist/ntfy_linux_amd64/ntfy \ -ldflags \