Artifact 92e0ff6d4997f963c4e069852e156ef3f345157434e80d65a7e1d55f7239d989:
- File
Makefile
— part of check-in
[f5744359d3]
at
2026-04-19 16:30:54
on branch trunk
— Initial open source release
libfossil is a pure-Go implementation of the Fossil SCM, reading and writing the same .fossil SQLite repository format as upstream Fossil.
This is the first public release of code that previously lived in a private repository. The module path is github.com/danmestas/libfossil and the binary is named libfossil to avoid $PATH collisions with upstream fossil.
Included: - Repo lifecycle (create, clone), checkout/checkin, timeline, merge, diff, annotate, shun, tag, branch, bisect, stash, undo/redo - Sync-over-HTTP protocol (client and handler) - Two SQLite drivers: modernc (pure Go, default) and ncruces (wasm-capable) - Observer interfaces (SyncObserver, CheckoutObserver) with an optional OpenTelemetry implementation in observer/otel (separate submodule) - Deterministic simulation testing harness with BUGGIFY fault injection - Kong-based embeddable CLI under cli/ and a standalone binary under cmd/libfossil/ (user: [email protected], size: 704) [annotate] [blame] [check-ins using]
.PHONY: test test-drivers test-otel test-all vet build setup-hooks test: go test ./... -count=1 -timeout=120s test-drivers: @echo "=== modernc (default) ===" go test ./... -count=1 -timeout=120s @echo "=== ncruces ===" go test -tags test_ncruces ./... -count=1 -timeout=120s @echo "=== all drivers passed ===" test-otel: cd observer/otel && GOWORK=off go test ./... -count=1 test-all: test-drivers test-otel build @echo "=== all targets passed ===" vet: go vet ./... build: go build ./cmd/libfossil/ setup-hooks: git config core.hooksPath .githooks @echo "Pre-commit hook installed. Runs both drivers + DST + OTel (~45s) before each commit." @echo "Skip with: git commit --no-verify"