Skip to content

feat: add --update-plugins flag to bypass plugin cache#32822

Open
niStee wants to merge 2 commits into
anomalyco:devfrom
niStee:feat/update-plugins
Open

feat: add --update-plugins flag to bypass plugin cache#32822
niStee wants to merge 2 commits into
anomalyco:devfrom
niStee:feat/update-plugins

Conversation

@niStee

@niStee niStee commented Jun 18, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #30526
Closes #18544

Type of change

  • New feature

What does this PR do?

This PR introduces a global --update-plugins CLI flag that forces the internal arborist instance to bypass the local cache check. When this flag is passed, Npm.add ignores the existing node_modules cache directory and successfully executes arborist.reify to fetch the true @latest tags directly from the npm registry.

How did you verify your code works?

I wrote a test in packages/core/test/npm.test.ts that mocks a local cache directory and asserts that when OPENCODE_UPDATE_PLUGINS=1 is set, Npm.add successfully bypasses it and attempts the network reify.

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jun 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant