require build tag to include sqlite (#4213)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Doug Lauder 2022-11-16 08:12:05 -05:00 committed by GitHub
parent f915a20c64
commit 824724387c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View file

@ -12,7 +12,7 @@ ifeq ($(BUILD_NUMBER),)
BUILD_DATE := n/a BUILD_DATE := n/a
endif endif
BUILD_TAGS += json1 BUILD_TAGS += json1 sqlite3
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildNumber=$(BUILD_NUMBER)" LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildNumber=$(BUILD_NUMBER)"
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildDate=$(BUILD_DATE)" LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildDate=$(BUILD_DATE)"

View file

@ -10,7 +10,6 @@ import (
sq "github.com/Masterminds/squirrel" sq "github.com/Masterminds/squirrel"
_ "github.com/lib/pq" // postgres driver _ "github.com/lib/pq" // postgres driver
"github.com/mattermost/focalboard/server/model" "github.com/mattermost/focalboard/server/model"
_ "github.com/mattn/go-sqlite3" // sqlite driver
"github.com/mattermost/mattermost-server/v6/shared/mlog" "github.com/mattermost/mattermost-server/v6/shared/mlog"
) )

View file

@ -12,7 +12,6 @@ import (
sq "github.com/Masterminds/squirrel" sq "github.com/Masterminds/squirrel"
_ "github.com/lib/pq" // postgres driver _ "github.com/lib/pq" // postgres driver
"github.com/mattermost/focalboard/server/model" "github.com/mattermost/focalboard/server/model"
_ "github.com/mattn/go-sqlite3" // sqlite driver
"github.com/mattermost/mattermost-server/v6/shared/mlog" "github.com/mattermost/mattermost-server/v6/shared/mlog"
) )

View file

@ -0,0 +1,5 @@
//go:build sqlite3
package sqlstore
import _ "github.com/mattn/go-sqlite3" // sqlite driver