Check that libc stays at the version the SQLite driver requires
modernc.org/sqlite is C transpiled to Go against one version of modernc.org/libc, and its go.mod names that version exactly: v1.80.1 for v1.64.0, while libc's latest is v1.82.14. A newer libc breaks the driver without a compile error, and a routine go get -u would move it. The owner accepted holding libc there as the one exception to taking each dependency at its latest stable release; it moves only with the driver. tools/libcpin compares the libc that go list -m selects with the one go mod graph shows the selected modernc.org/sqlite requiring, and fails with the go get that restores it. It runs as go run ./tools/libcpin, so it works from PowerShell and in CI alike. test.yml and make check run it after go mod tidy -diff, CLAUDE.md lists it in the gate and records the exception beside the dependency rule, and design.md records it under the stack choices. Moving libc to v1.82.14 with go get made the check fail as it should; the change was not kept. Part of stage 1d of docs/plans/job-store.md (decision 13). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5ae323b570
commit
2926a69598
7 files changed
+147
-8
No files matched your search
+3
-1
@@ -301,7 +301,9 @@ client ─HTTPS─▶ Caddy ─▶ server ── validate ──▶ printqueue (
|
||||
- `modernc.org/libc` is the one module held below its latest release. It
|
||||
stays at the exact version `modernc.org/sqlite` requires, since the
|
||||
driver is C transpiled to Go against that libc and works with it alone,
|
||||
and moves only with the driver.
|
||||
and moves only with the driver. A routine `go get -u` would move it and
|
||||
break the driver without a compile error, so the gate runs
|
||||
`tools/libcpin`, which fails when the two differ.
|
||||
- **Packaging.** The daemon serves no TLS itself and binds 127.0.0.1 by
|
||||
default; a reverse proxy in front terminates HTTPS and sets `X-Real-IP`.
|
||||
- The release tarballs are built for linux amd64, armv6, armv7 and arm64.
|
||||
|
||||
+5
-2
@@ -47,8 +47,10 @@ make snapshot # release archives in dist/; publishes nothing
|
||||
```
|
||||
|
||||
`make check` runs the same steps as `.gitea/workflows/test.yml`, in the same
|
||||
order: gofmt and goimports, `go mod tidy -diff`, `go vet`, staticcheck, a
|
||||
check that `go generate ./...` leaves the generated files unchanged,
|
||||
order: gofmt and goimports, `go mod tidy -diff`, `go run ./tools/libcpin`,
|
||||
which fails unless `modernc.org/libc` is the exact version
|
||||
`modernc.org/sqlite` requires, `go vet`, staticcheck, a check that
|
||||
`go generate ./...` leaves the generated files unchanged,
|
||||
`go test -race -timeout 5m`, builds for linux/arm (ARMv6) and linux/arm64
|
||||
without cgo, as releases are built, whose binaries it discards, and
|
||||
`goreleaser check`, which validates the release config without building.
|
||||
@@ -105,6 +107,7 @@ examples/ Example jobs, such as the block calibration receipt
|
||||
packaging/ systemd unit
|
||||
tools/genlicenses/ Generates THIRD-PARTY-LICENSES.md and its embedded copy from the linked modules
|
||||
tools/genopenapi/ Generates docs/swagger.json from the route table
|
||||
tools/libcpin/ Checks that modernc.org/libc is the version modernc.org/sqlite requires
|
||||
docs/ User docs, API reference, OpenAPI document, design notes and feature plans
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user