e1835fae
compare.sr.ht: project foundation — core package, build scaffolding, core-go fork pin
Bootstrap the go.bigb.es/sourcehut-compare service: - go.mod (go 1.26.4) pinning core-go to the private fork git.srht.bigb.es/~bigbes/core-go @ c2c2f3848fa9 via a replace directive; go.sum populated by a throwaway smoke build importing core-go config/crypto/client/server + chi + logrus (gates API drift from the verification baseline fdb3662 to upstream 71b2787). - core/: pure domain package — sentinel errors, owner/repo/ref validation (check-ref-format-style, hostile-input hardened), and the compare-spec grammar (ParseCompareSpec, three-dot/two-dot, percent-unescape). Table tests at 97% coverage. - Makefile (all/build/test/css/bundle/run-dev/install), config.example.ini documenting the shared keys read in place, contrib/ nginx block and systemd unit, README skeleton, .gitignore. core-go dep deps and go mod tidy are deferred to later phases per plan.
bigbes <bigbes@gmail.com> — 2026-07-18 17:35:18 UTC
Commit e1835faeeb226d9021a7b37109232106bb37e7be —
view raw patch
| File | Status | + | − |
|---|---|---|---|
.gitignore
|
A | +11 | |
Makefile
|
A | +63 | |
README.md
|
A | +71 | |
config.example.ini
|
A | +64 | |
contrib/compare-srht.service
|
A | +22 | |
contrib/compare.sr.ht.conf
|
A | +27 | |
core/errors.go
|
A | +30 | |
core/names.go
|
A | +135 | |
core/names_test.go
|
A | +112 | |
core/spec.go
|
A | +72 | |
core/spec_test.go
|
A | +78 | |
go.mod
|
A | +51 | |
go.sum
|
A | +233 |