oxtyped / gpodder2go

gpodder2go is a simple self-hosted, golang, drop-in replacement for gpodder/mygpo server to handle podcast subscriptions management for gpodder clients
GNU Affero General Public License v3.0
102 stars 13 forks source link

using modernc.org/sqlite instead of cgo-based SQLite client ? #5

Closed sbinet closed 1 year ago

sbinet commented 1 year ago

hi there,

would it be ok to use modernc.org/sqlite ? it would allow easy cross-compilation (from, say, anything to a RPi)

oxtyped commented 1 year ago

Hello 👋

Yes! This actually has been one of the things I have been thinking of doing for a while now.

I will look into it, but if you want to open up a PR for this in the meantime, please don't let me stop you!

oxtyped commented 1 year ago

@sbinet how can I replicate the cross-compilation failure from go-sqlite3 and the lack of cgo?

sbinet commented 1 year ago

a simple way to test it is like:

$> GOARCH=arm64 CGO_ENABLED=0 go build