[PR #9597] fix(opencode): Allow compatible Bun versions in packageManager field #13156

Closed
opened 2026-02-16 18:18:01 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9597

State: closed
Merged: Yes


Fixes #9583

Fixes build failure with Bun 1.3.6 by using semver ranges and updating build hashes.

Problem:
OpenCode build fails because packageManager specifies bun@1.3.5, but Nix provides 1.3.6.

Solution:

  • Update packageManager to ^1.3.5 to allow compatible versions.
  • Modify the build script to use semver.satisfies() for range checking.
  • Update nix/hashes.json with new node_modules hash.

Compatibility:
Bun 1.3.6 is fully backward compatible (confirmed via changelog review). No breaking changes affect the build script.

Testing:
Verified with local NixOS rebuild; build succeeds with Bun 1.3.6.

Note: PR #9618 provides an alternative fix by pinning exactly to bun@1.3.6 instead of using semver ranges.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9597 **State:** closed **Merged:** Yes --- Fixes #9583 Fixes build failure with Bun 1.3.6 by using semver ranges and updating build hashes. **Problem:** OpenCode build fails because packageManager specifies bun@1.3.5, but Nix provides 1.3.6. **Solution:** - Update packageManager to ^1.3.5 to allow compatible versions. - Modify the build script to use semver.satisfies() for range checking. - Update nix/hashes.json with new node_modules hash. **Compatibility:** Bun 1.3.6 is fully backward compatible (confirmed via changelog review). No breaking changes affect the build script. **Testing:** Verified with local NixOS rebuild; build succeeds with Bun 1.3.6. **Note:** PR #9618 provides an alternative fix by pinning exactly to bun@1.3.6 instead of using semver ranges.
yindo added the pull-request label 2026-02-16 18:18:01 -05:00
yindo closed this issue 2026-02-16 18:18:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13156