87b2368d
build: lint development builds
a73x 2026-09-07 09:43
Commit message
CLAUDE.md
| Old | New | ||
|---|---|---|---|
| @@ -20,7 +20,7 @@ Use `deps/zig/zig` (0.15.2) through Make; the system Zig is incompatible. | |||
| 20 | Make handles the macOS shadow SDK. See [development commands](docs/development.md) | 20 | Make handles the macOS shadow SDK. See [development commands](docs/development.md) |
| 21 | for setup, releases, cross-OS checks and the full command list. | 21 | for setup, releases, cross-OS checks and the full command list. |
| 22 | 22 | ||
| 23 | - `make build`: development CLI build. | 23 | - `make build`: lint, then build the development CLI. |
| 24 | - `make lint`: fetch and verify pinned zlint, then lint repository Zig sources. | 24 | - `make lint`: fetch and verify pinned zlint, then lint repository Zig sources. |
| 25 | - `make check`: required before commit; lint, formatting, unit tests, shell | 25 | - `make check`: required before commit; lint, formatting, unit tests, shell |
| 26 | checks, web ABI verification, comment references and source-rule checks. | 26 | checks, web ABI verification, comment references and source-rule checks. |
Makefile
| Old | New | ||
|---|---|---|---|
| @@ -48,6 +48,7 @@ deps: | |||
| 48 | ./deps/quic/build-deps.sh musl | 48 | ./deps/quic/build-deps.sh musl |
| 49 | 49 | ||
| 50 | build: mac-sdk | 50 | build: mac-sdk |
| 51 | $(MAKE) lint | ||
| 51 | $(ZIG) build | 52 | $(ZIG) build |
| 52 | 53 | ||
| 53 | # Install the two product binaries; the other build artifacts are test fixtures. | 54 | # Install the two product binaries; the other build artifacts are test fixtures. |
docs/development.md
| Old | New | ||
|---|---|---|---|
| @@ -6,8 +6,8 @@ ZIG=deps/zig/zig # vendored 0.15.2 (ghostty pin); copy the toolchain here, git | |||
| 6 | make mac-sdk # Darwin only, and `make build` runs it: a shadow SDK | 6 | make mac-sdk # Darwin only, and `make build` runs it: a shadow SDK |
| 7 | # under deps/mac-sdk, because zig 0.15.2 cannot link | 7 | # under deps/mac-sdk, because zig 0.15.2 cannot link |
| 8 | # the stub Xcode 26.4+ ships. No-op elsewhere. | 8 | # the stub Xcode 26.4+ ships. No-op elsewhere. |
| 9 | make build test e2e # Makefile already points at it | 9 | make build test e2e # build lints first; Makefile already points at the pinned Zig |
| 10 | make lint # fetch/verify pinned zlint and lint Zig sources | 10 | make lint # standalone: fetch/verify pinned zlint and lint Zig sources |
| 11 | make check # lint + fmt + tests + shell/web ABI/source checks — pre-commit gate | 11 | make check # lint + fmt + tests + shell/web ABI/source checks — pre-commit gate |
| 12 | make ci # check + e2e + agent + throughput — the delivery gate | 12 | make ci # check + e2e + agent + throughput — the delivery gate |
| 13 | make daemon-test client-test # focused component tests; same artifacts as make test | 13 | make daemon-test client-test # focused component tests; same artifacts as make test |