You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building pre-built binaries would be really nice to have.
This way users can just download the binary for their architecture and run something like tilepack [-flags] ....
There is a small hurdle that mattn/go-sqlite3 requires CGO, so we also need to compile the SQLite C library, but this can be overcome in two ways:
Tweak the build to compile SQLite and bundle it as a static binary.
Swap mattn/go-sqlite3 for modernc.org/sqlite, a pure Go rewrite of SQLite. This has a small caveat that is marginally slower than the C code, but it's really not a deal breaker (particularly as SQLite does not allow concurrent writes anyway).
Proposed build config
I'm more than happy to submit a PR for this, but first wanted to gauge interest.
The following code uses mattn/go-sqlite3 with CGO_ENABLED=1.
The config would be simplified greatly if modernc.org/sqlite was used instead.
This is only for the build CLI.
We could also package the serve CLI if desired, perhaps by wrapping in a higher level CLI?
e.g. tilepack build ... & tilepack serve ...
The text was updated successfully, but these errors were encountered:
Pre-built binaries
tilepack [-flags] ...
.mattn/go-sqlite3
requires CGO, so we also need to compile the SQLite C library, but this can be overcome in two ways:mattn/go-sqlite3
formodernc.org/sqlite
, a pure Go rewrite of SQLite. This has a small caveat that is marginally slower than the C code, but it's really not a deal breaker (particularly as SQLite does not allow concurrent writes anyway).Proposed build config
I'm more than happy to submit a PR for this, but first wanted to gauge interest.
The following code uses
mattn/go-sqlite3
withCGO_ENABLED=1
.The config would be simplified greatly if
modernc.org/sqlite
was used instead..goreleaser.yaml
Github workflow
Note
This is only for the
build
CLI.We could also package the
serve
CLI if desired, perhaps by wrapping in a higher level CLI?e.g.
tilepack build ...
&tilepack serve ...
The text was updated successfully, but these errors were encountered: