A SQLite file that an earlier release's migration left empty next to an
intact bolt.db was taken as authoritative; a file without the system
settings a completed migration writes is discarded and the migration
runs again. A database migrated by that earlier release holds its
groups and outbound settings in the two tables the runtime never read;
opening it copies them into the keys it reads, for outbounds that have
none yet.
A start whose host-state recovery failed refused to run, and a start
that rolled back after its own stop tore the host state down a second
time; recovery is logged and retried at the next start, and a rollback
that stopped its process only clears the marker. A system-proxy
snapshot pending from an earlier run blocked every later system-proxy
start; it is reused as the original instead (Linux and macOS here; the
Windows side follows with its per-profile snapshot).
An empty /etc/resolv.conf was backed up as an empty file, which the
restore rejects as truncated; it is written as a marker and restored as
empty. db.Close resets the once so a reopen works.
PRAGMA busy_timeout and foreign_keys ran once through the database/sql
pool, so only one pooled connection had them and concurrent writers failed
with SQLITE_BUSY; pass them in the DSN for both the modernc and the CGO
driver. BucketClear built its LIKE prefix from the outbound name without
escaping % and _, so clearing one outbound could wipe another's rows.
ListAppend read MAX(sort) in a separate statement, so two concurrent
appends got the same sort value; compute it inside the INSERT.
- extend mips driver build tags to cover mips/mips64 variants
- update sqlite validation message to mips-family scope
- enable CGO only for Linux mips-family targets in binaries workflow
- install required mips cross compilers in CI
Use build-tag specific driver selection for sqlite:
- keep modernc sqlite on non-mipsle targets
- use go-sqlite3 for mipsle builds with cgo
- return explicit error when sqlite driver is unavailable
Also apply the same driver selection in migration db initialization.