Closed brianlow closed 10 months ago
Same here. Download version 0.4.0 and ran from the Mac Mini (M1) terminal.
$ ./flyscrape dev erasmatazz.js cache: failed to create cache table: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
Any suggestions appreciated.
Flyscrape uses github.com/mattn/go-sqlite3 for storing the SQLite cache file. This library requires CGO to function correctly which is currently disabled in the release pipeline. That was an oversight.
I tried to enable it but unfortunately it is not trivial. The pipeline must be updated to use something like https://github.com/goreleaser/goreleaser-cross.
As a workaround, you can install Flyscrape from source:
go install github.com/philippta/flyscrape/cmd/flyscrape@latest
Fixed in the latest v0.4.1 release.
Fixed for me, thanks!
Any ideas on this?
Macbook M1 using
flyscrape_mac_arm64.tar.gz
. Tried 0.4.0 and 0.3.0 versions