From 0f049721c6ab5b12d9425f908d1ff8c6c71a82cf Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 4 Feb 2022 17:42:22 -0500 Subject: add go-sqlite3 and sqlite_fts5 to build tags --- Makefile | 4 ++-- go.mod | 1 + go.sum | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index effbbbc..ab8c41f 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,11 @@ # build binary all: - go build -ldflags='-s -w' + go build -tags='sqlite_fts5' -ldflags='-s -w' # run all tests test: - go test -cover ./... + go test -tags='sqlite_fts5' -cover ./... # run all tests, print result to stdout as json testjson: diff --git a/go.mod b/go.mod index 8f6363c..0864e5c 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/pablotron/cvez go 1.18 require ( + github.com/mattn/go-sqlite3 v1.14.11 // indirect golang.org/x/mod v0.5.1 // indirect golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect golang.org/x/tools v0.1.9 // indirect diff --git a/go.sum b/go.sum index 598fd54..a948cfc 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/mattn/go-sqlite3 v1.14.11 h1:gt+cp9c0XGqe9S/wAHTL3n/7MqY+siPWgWJgqdsFrzQ= +github.com/mattn/go-sqlite3 v1.14.11/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= golang.org/x/mod v0.5.1 h1:OJxoQ/rynoF0dcCdI7cLPktw/hR2cueqYfjm43oqK38= golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= -- cgit v1.2.3