Repository navigation
Conversation
|
Hi @rekram1-node — sorry for another ping. When you have a moment, would you mind taking a look at this one as well? What this fixes What I changed
Verification
Happy to adjust wording or behavior if you prefer a different approach. Thanks so much for your time. |
Do not treat a failed package.json read as a compatibility pass.
7e082e1 to
4251a94
Compare
|
Hi @rekram1-node @kitlangton — gentle follow-up on this smaller reliability fix when you have time. Issue Current state
Change
No rush — just wanted it back on radar after sitting for a few days. Thanks either way. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Do not treat a failed package.json read as a compatibility pass. (cherry picked from anomalyco#43334)
Issue for this PR
Closes #43094
Type of change
What does this PR do?
checkPluginCompatibility used to swallow package.json read failures and return as if the gate passed. That meant an unreadable or malformed plugin manifest skipped the engines.opencode check with no error.
If the package cannot be read, throw a named error so the existing compatibility stage skips the plugin and surfaces the failure. Version mismatch and major-0 skip behavior are unchanged.
How did you verify your code works?
From packages/opencode:
All passed, including cases for missing/malformed package.json, unsatisfied range, satisfied range, and major-0 skip.
Screenshots / recordings
N/A
Checklist