jorgerojas26 / lazysql

A cross-platform TUI database management tool written in Go.
MIT License
544 stars 29 forks source link

Windows binaries missing cgo #46

Open bennettscience opened 3 months ago

bennettscience commented 3 months ago

The pre-compiled Windows builds did not include the CGO_ENABLED flag and cannot open SQLite files.

Snag_2abb6162

cameronj86 commented 3 months ago

Experiencing the same issue on Debian (Bookworm)

image

ityc commented 2 weeks ago

Experiencing the same issue on Debian (buster) image

FrauElster commented 2 weeks ago

Goal could be to get rid of CGO entirely.

Following this Reddit post we can list all deps that use CGO, which boils down to

github.com/mattn/go-sqlite3 golang.design/x/clipboard.

We could swap the sqlite driver to a pure go one.

I dont know about clipboard though. They have some open issues about that:

One could try to swap the driver and build with CGO_ENABLED=0