Commit 779d848
fix: pin Bun to v1.3.11 to fix broken darwin-arm64 release binaries (#280)
Bun v1.3.12 introduced a regression (oven-sh/bun#29120) where
`bun build --compile` produces darwin-arm64 binaries with a truncated
code signature. macOS requires all arm64 binaries to be at least ad-hoc
signed, so the unsigned binary is immediately killed with SIGKILL
(exit 137).
Root cause: The Bun runtime binary grew by ~337KB in v1.3.12 (due to
Zig compiler changes), triggering a latent bug in `macho.zig`'s
`sig_size` calculation. The LC_CODE_SIGNATURE space allocated is too
small for the actual SuperBlob — 196,592 bytes allocated vs 537,138
bytes needed — resulting in a truncated, invalid signature.
Evidence:
- v4.1.2 (working): built with Bun v1.3.11 (CI run #24075809811)
- v4.1.3 (broken): built with Bun v1.3.12 (CI run #24285207021)
- v4.1.4 (broken): built with Bun v1.3.12 (CI run #24296958808)
- Locally confirmed: `codesign --remove-signature && codesign -s -`
restores the binary to working state
Pin to v1.3.11 until the upstream fix lands.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6aa2672 commit 779d848
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments