Switch to pure-Go SQLite driver for cross-compilation
- Replace mattn/go-sqlite3 with modernc.org/sqlite (pure-Go, no CGO required) - Update GoReleaser config to disable CGO for ARM64 builds - Change driver name from 'sqlite3' to 'sqlite' in all sql.Open calls - Enables successful cross-compilation for ARM64 without cross-compiler toolchain - All tests passing with new driver
This commit is contained in:
+3
-1
@@ -9,7 +9,7 @@ builds:
|
||||
main: ./cmd/api
|
||||
binary: apocapoc-api
|
||||
env:
|
||||
- CGO_ENABLED=1
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
@@ -17,6 +17,8 @@ builds:
|
||||
- arm64
|
||||
ldflags:
|
||||
- -s -w
|
||||
tags:
|
||||
- sqlite_omit_load_extension
|
||||
|
||||
archives:
|
||||
- id: apocapoc-api
|
||||
|
||||
Reference in New Issue
Block a user