feat: disable CGO_ENABLED (#1766)

* Replace mattn/go-sqlite3 with modernc.org/sqlite

* Disable CGO to make binary work without special c lib

* Replace mattn/go-sqlite3 with modernc.org/sqlite in testing code

* Tidy go module

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
This commit is contained in:
Athurg Gooth
2023-05-29 13:29:42 +08:00
committed by GitHub
parent ce64894abe
commit ddf4cae537
7 changed files with 63 additions and 13 deletions

View File

@ -16,8 +16,8 @@ import (
"github.com/usememos/memos/store/db"
"github.com/usememos/memos/test"
// sqlite3 driver.
_ "github.com/mattn/go-sqlite3"
// sqlite driver.
_ "modernc.org/sqlite"
)
type TestingServer struct {