docs: correct plugin cache path to packages dir#32434
Open
0xDevNinja wants to merge 1 commit into
Open
Conversation
The plugin install location moved to `~/.cache/opencode/packages/` but the docs still referenced the old `~/.cache/opencode/node_modules/` path, which does not exist on current installs (see npm.ts install target). Fixes anomalyco#32421
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #32421
Type of change
What does this PR do?
The plugins doc says npm plugins are cached in
~/.cache/opencode/node_modules/, but the installer actually writes them to~/.cache/opencode/packages/(path.join(global.cache, "packages", sanitize(pkg))inpackages/core/src/npm.ts). Thenode_modules/directory doesn't exist on current installs, so people can't find where their plugins landed. This updates the documented path to match the code.Only the English source (
plugins.mdx) is changed; the locale copies are regenerated by the i18n sync, so editing translations by hand would be churn.How did you verify your code works?
Traced the install target in
packages/core/src/npm.tsand confirmed plugins install under~/.cache/opencode/packages/<pkg>, and that nonode_modules/dir is created there. Docs-only change, no runtime code touched.Screenshots / recordings
N/A — docs only.
Checklist