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

@ -1,7 +1,7 @@
package main
import (
_ "github.com/mattn/go-sqlite3"
_ "modernc.org/sqlite"
"github.com/usememos/memos/cmd"
)