Skip to content

Commit bed8799

Browse files
committed
docs: add brew service debugging tips to CLAUDE.md
1 parent b0ce06f commit bed8799

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ Follow the Zig zen principles when approaching how to write code, solve problems
3434
- Memory is a resource.
3535
- Together we serve the users.
3636

37+
## Debugging Brew Service
38+
39+
When debugging issues with `brew services`, always check `cld --version` to verify the installed binary matches the expected commit. The brew formula copies the binary to a stable path (`/opt/homebrew/var/cld/cld`) for FDA persistence — if the `post_install` fails silently, the service may run a stale binary.
40+
41+
- `cld --version` — shows version + git hash (e.g. `cld 0.1.0-e60c3ef`)
42+
- `md5 /opt/homebrew/bin/cld /opt/homebrew/var/cld/cld` — compare CLI vs service binary
43+
- `tail /opt/homebrew/var/log/cld.err.log` — service error log
44+
- Build with hash: `zig build -Dgit-hash="$(git rev-parse --short HEAD)"`
45+
3746
## Zig Version
3847

3948
Using Zig 0.15.2. Key API differences from older versions:

0 commit comments

Comments
 (0)