I’d like to use go-sqlite3. Building it takes a long time (~5 mins), and for me this happens on every snapcraft run.
My code has two relevant imports:
import (
“database/sql”
_ "github.com/mattn/go-sqlite3"
)
The go-sqlite3 import results in rebuilding it every time, but the import is needed to register the sqlite3 driver with database/sql.
Is there a way to add the pre-compiled go binary[1] to my snap so it is not rebuilt every time, but also keep the required go-sqlite3 import?
[1] go/pkg/linux_arm/github.com/mattn/go-sqlite3.a
Cheers,
kyleN