From 7062ddef5a9166595ebef86b272a74e379843f2b Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Wed, 28 Dec 2016 16:10:30 +0000 Subject: Allow building static binaries sqlite uses CGO which prevents the building of statically-linked binaries. This change will omit sqlite support when building a static binary with: CGO_ENABLED=0 go build --ldflags '-extldflags "-static"' --- server/store/sqldb.go | 1 - 1 file changed, 1 deletion(-) (limited to 'server/store/sqldb.go') diff --git a/server/store/sqldb.go b/server/store/sqldb.go index 6c1be0e..d7ef878 100644 --- a/server/store/sqldb.go +++ b/server/store/sqldb.go @@ -10,7 +10,6 @@ import ( "golang.org/x/crypto/ssh" "github.com/go-sql-driver/mysql" - _ "github.com/mattn/go-sqlite3" // required by sql driver "github.com/nsheridan/cashier/server/config" ) -- cgit v1.2.3