mirror of
https://github.com/navidrome/navidrome.git
synced 2026-03-04 06:35:52 +00:00
Vendor the spellfix1 extension source and compile it directly into the binary via cgo, avoiding runtime shared library dependencies across platforms. The extension is registered via sqlite3_auto_extension so every new SQLite connection has spellfix1 available. Signed-off-by: Deluan <deluan@navidrome.org>
22 lines
628 B
Go
22 lines
628 B
Go
package main
|
|
|
|
import (
|
|
_ "net/http/pprof" //nolint:gosec
|
|
|
|
"github.com/navidrome/navidrome/cmd"
|
|
"github.com/navidrome/navidrome/conf/buildtags"
|
|
)
|
|
|
|
//goland:noinspection GoBoolExpressions
|
|
func main() {
|
|
// These references force the inclusion of build tags when compiling the project.
|
|
// If you get compilation errors like "undefined: buildtags.NETGO", this means you forgot to specify
|
|
// the required build tags when compiling the project.
|
|
// To avoid these kind of errors, you should use `make build` to compile the project.
|
|
_ = buildtags.NETGO
|
|
_ = buildtags.SQLITE_FTS5
|
|
_ = buildtags.SQLITE_SPELLFIX
|
|
|
|
cmd.Execute()
|
|
}
|