Dashboard › opencode › OpenCode compiled-binary build prerequi…
01a086aa-bc6b-7cb8-b4cf-691c0b788b30| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 5 | 2d ago |
| Code | 1 | 2026-06-14 |
Compiled OpenCode binaries require the OPENCODE_MIGRATIONS build define containing serialized migration SQL. Without it, import.meta.dirname resolves under /$bunfs/root, migration lookup targets nonexistent /$bunfs/migration, and the TUI crashes with ENOENT. Stable and development binary scripts must set the define. Node binary builds also require Bun ^1.4.2; installing a newer Bun elsewhere is insufficient if the invoking shell still resolves an older runtime. Invoke the intended Bun binary directly or prepend its directory to PATH, then verify bun --version in the exact build command environment.