You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I ran into something a little confusing with local plugin dependency installs and wanted to check if this is intentional:
The plugin docs still say local plugin dependencies use bun install at startup, but on OpenCode 1.4.0 I can reproduce behavior that looks npm-based instead.
What I expected
I expected one of these:
local plugin dependencies still use Bun, matching the docs
ideally respect the existing bun.lock file
(or) the docs reflect the current npm-based behavior
Note
Personally, I would also love for this to be configurable if possible. I still prefer using Bun, and right now the generated package-lock.json is conflicting with my bun.lock which feels weird.
Docs reference
The current plugins docs still say:
OpenCode runs bun install at startup to install these.
If this change was intentional, would you be open to either documenting it more clearly or better yet, making the package manager configurable for local plugin dependencies?
I'm happy to open a PR for either if you're interested
Plugins
Workmux/self written plugins
OpenCode version
1.4.0
Steps to reproduce
Repro
Put a local plugin config under ~/.config/opencode (I use bun so on install it creates bun.lock)
Add a package.json there for local plugin dependencies.
Remove node_modules from that directory.
Run opencode run "test" --print-logs --log-level INFO.
Description
Hi! I ran into something a little confusing with local plugin dependency installs and wanted to check if this is intentional:
The plugin docs still say local plugin dependencies use
bun installat startup, but on OpenCode1.4.0I can reproduce behavior that looks npm-based instead.What I expected
I expected one of these:
bun.lockfileNote
Personally, I would also love for this to be configurable if possible. I still prefer using Bun, and right now the generated
package-lock.jsonis conflicting with mybun.lockwhich feels weird.Docs reference
The current plugins docs still say:
https://opencode.ai/docs/plugins/#how-plugins-are-installed
If this change was intentional, would you be open to either documenting it more clearly or better yet, making the package manager configurable for local plugin dependencies?
I'm happy to open a PR for either if you're interested
Plugins
Workmux/self written plugins
OpenCode version
1.4.0
Steps to reproduce
Repro
~/.config/opencode(I usebunso on install it createsbun.lock)package.jsonthere for local plugin dependencies.node_modulesfrom that directory.opencode run "test" --print-logs --log-level INFO.The startup logs show:
After that run, OpenCode recreates:
package-lock.jsonnode_modules/.package-lock.jsonnode_modules/So if I delete
package-lock.json, it comes back on the next dependency bootstrap.Screenshot and/or share link
No response
Operating System
macOS Tahoe
Terminal
Ghostty