Fix SQLite driver for CGO_ENABLED=0 builds
Replace github.com/mattn/go-sqlite3 (CGO required) with modernc.org/sqlite (pure Go, works with CGO_ENABLED=0). Binary built with CGO_ENABLED=0 in Dockerfile can now load SQLite storage without cgo errors.
This commit is contained in:
1 parent
9a3d35bde4
commit
6ec39da5da
3 files changed
+62
-5
No files matched your search
@@ -5,12 +5,21 @@ go 1.27.2
|
||||
require (
|
||||
gitea.mrixs.me/Mrixs/yandex-music-api-go v0.0.0-20261014200451-02a6dabcfbea
|
||||
github.com/bogem/id3v2 v1.2.0
|
||||
github.com/mattn/go-sqlite3 v1.14.24
|
||||
gopkg.in/yaml.v3 v3.0.1
|
||||
modernc.org/sqlite v1.60.1
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/gorilla/websocket v1.5.3 // indirect
|
||||
github.com/mattn/go-isatty v0.0.24 // indirect
|
||||
github.com/ncruces/go-strftime v1.0.0 // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
golang.org/x/sys v0.48.0 // indirect
|
||||
golang.org/x/text v0.32.0 // indirect
|
||||
google.golang.org/protobuf v1.36.12 // indirect
|
||||
modernc.org/libc v1.77.1 // indirect
|
||||
modernc.org/mathutil v1.7.1 // indirect
|
||||
modernc.org/memory v1.12.1 // indirect
|
||||
)
|
||||
Reference in new issue
Block a user