Artifact 17d10612ce2f0fe392e470d62bf00e4ef30043414b45dab97541f85684919711:
- File
hub/driver.go
— part of check-in
[38efed7a12]
at
2026-08-12 20:50:57
on branch main
— chore(deps): migrate to go-libfossil v0.9.0 (#195)
* chore(deps): migrate to go-libfossil v0.9.0 (renamed module path)
- import path danmestas/libfossil → danmestas/go-libfossil everywhere - CloneOpts.ProjectCode removed upstream; assert via CloneResult instead - Timeline now takes TimelineOpts (cursor pagination, newest-first) - testutil.HasFossil removed; check FossilBinary() != ""
* ci: retrigger checks
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> (user: [email protected], size: 848) [annotate] [blame] [check-ins using]
//go:build !js && !wasm package hub // libfossil's db layer requires a SQL driver to be registered before any // Repo can be opened. Registering it here means consumers of EdgeSync can // `import "github.com/danmestas/EdgeSync/hub"` without also taking a direct // dependency on libfossil's internal SQL machinery — the package doc // promise that consumers don't need to import libfossil holds end-to-end. // // modernc is a pure-Go cgo-free SQLite driver suitable for every supported // GOOS/GOARCH except js/wasm — its generated code references unsupported // syscalls under those targets. The build constraint above excludes this // file from wasm compilation; wasm consumers must register their own // driver (libfossil's ncruces driver has wasm support via ncruces_js.go). import _ "github.com/danmestas/go-libfossil/db/driver/modernc"