A build failure needs debugging. Context: $ARGUMENTS
Steps
- •Run
tools/ai/check_digest.sh nix develop --command cargo check --all-targetsto get current errors - •Categorize errors:
- •Type errors: mismatched types, missing trait impls
- •Import errors: unresolved imports, missing modules
- •Lifetime errors: borrow checker issues
- •Proto errors: generated code mismatch (may need
cargo build -p lifelog-protofirst)
- •Fix errors starting from the dependency root (errors in common/ before server/, proto before everything)
- •After each fix, re-run check_digest to verify progress
- •Once clean, run
just validateto ensure clippy + tests also pass
IMPORTANT: If proto-generated code is stale, rebuild proto first: nix develop --command cargo build -p lifelog-proto