Repository navigation
fix(opencode): normalize bun dependencies - #420
Conversation
Backport the upstream OpenCode 2.2.5 dependency fix. Install optional dependencies for every C library and use the corrected output hash. Fix NixOS/nixpkgs#582673. Assisted-by: OpenAI Codex (GPT-6) Signed-off-by: Leonard Sheng Sheng Lee <[email protected]>
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
Copilot review overview
2 open issues
What changed in this PR
Backports the Bun 1.4.4 dependency normalization workaround for OpenCode 2.2.5 in the Nix overlay and documents the investigation/validation steps in a new journal entry.
Changes:
- Add an overlay override for
opencode(only v2.2.5) to pass--libc="*"during dependency installation and update the fixed-output hash. - Add a journal entry capturing the rationale, verification, and related notes.
| File | Description |
|---|---|
| overlays/default.nix | Adds an opencode override to tweak dependency install flags and update outputHash for OpenCode 2.2.5. |
| docs/journals/20261108T095648Z.md | Documents the backport, validation steps, and investigation notes. |
Review effort: Lite
Co-authored-by: sheeeng <[email protected]>
Addressed both comments in e4c5488. Only the OpenCode override changed. Replacement boundary, whitespace, and secret checks passed. Nix and pre-commit are unavailable; CodeQL had no supported-language changes to analyze. |
Co-authored-by: sheeeng <[email protected]>
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
Copilot review overview
4 open issues
This bareassertwill fail with a generic assertion error if upstream changes thebuildPhase… · New ThisreplaceStringsis very brittle because it depends on an exact substring match including…builtins.replaceStringsperforms a substring replacement, so it can unintentionally rewrite… TheoverrideAttrsparameter namedependenciesis misleading here because it represents the…
Review effort: Lite
Co-authored-by: sheeeng <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the version-gated OpenCode 2.2.5 dependency backport.
No open issues 🎉
4 resolved since last review
This bareassertwill fail with a generic assertion error if upstream changes thebuildPhase… ThisreplaceStringsis very brittle because it depends on an exact substring match including…builtins.replaceStringsperforms a substring replacement, so it can unintentionally rewrite… TheoverrideAttrsparameter namedependenciesis misleading here because it represents the…
Review effort: Balanced
Co-authored-by: sheeeng <[email protected]>


Backport the upstream OpenCode 2.2.5 fix. Add
--libc="*"and correctthe dependency hash.
Darwin build, version check, flake check, and changed-file checks passed.
The shared Darwin audit-classifier crash remains under investigation.