[PR #7912] fix: opencode Remove the symlinkBinary function call that replaces the wrapper script (fixes #7911) #12561

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

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

State: closed
Merged: Yes


The wrapper script in bin/opencode already has robust logic to find the correct platform-specific binary by searching through node_modules, so we don't need to replace it with a symlink. The postinstall script should only ensure the binary package is installed, not modify the wrapper script.

What does this PR do?

It fixes #7911

How did you verify your code works?

The release package is tested in local.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7912 **State:** closed **Merged:** Yes --- The wrapper script in `bin/opencode` already has robust logic to find the correct platform-specific binary by searching through `node_modules`, so we don't need to replace it with a symlink. The postinstall script should only ensure the binary package is installed, not modify the wrapper script. ### What does this PR do? It fixes #7911 ### How did you verify your code works? The release package is tested in local.
yindo added the pull-request label 2026-02-16 18:17:28 -05:00
yindo closed this issue 2026-02-16 18:17:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12561