mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
## Summary - Fix CMake JSON parsing error when Buildkite API returns commit messages with newlines CMake's `file(READ ...)` reads files with literal newlines, which breaks `string(JSON ...)` when the JSON contains escape sequences like `\n` in string values (e.g., commit messages from Buildkite API). Use `file(STRINGS ...)` to read line-by-line, then join with `\n` to preserve valid JSON escape sequences while avoiding literal newlines. ## Test plan - Verify CMake configure succeeds when Buildkite build has commit messages with newlines 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com>