[PR #12828] fix: honor OPENCODE_INSTALL_DIR environment variable (anomalyco#3097) #14391

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

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

State: closed
Merged: No


The option to specify the opencode binary installation directory was first introduced with 01e7dc2d02, which also updated the README* files to show this option.

This change was later rolled back with c87a7469a0 but with no explanation, but the README* files were not rolled back, which leaves the README* and install out-of-sync.

This commit adds back the choice to specify the installation directory via the OPENCODE_INSTALL_DIR environment variable.

It also updates all README* files to reflect what is taken into account by install.

I tested the change by running the install script to verify the opencode executable is installed in the specified directory.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12828 **State:** closed **Merged:** No --- The option to specify the opencode binary installation directory was first introduced with 01e7dc2d02e931be8dda945d44971c178a1a6a15, which also updated the `README*` files to show this option. This change was later rolled back with c87a7469a006b789e7235e03f453bdd52464d9b4 but with no explanation, but the `README*` files were not rolled back, which leaves the `README*` and `install` out-of-sync. This commit adds back the choice to specify the installation directory via the `OPENCODE_INSTALL_DIR` environment variable. It also updates all `README*` files to reflect what is taken into account by `install`. I tested the change by running the `install` script to verify the `opencode` executable is installed in the specified directory.
yindo added the pull-request label 2026-02-16 18:19:11 -05:00
yindo closed this issue 2026-02-16 18:19:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14391