Repository navigation
fix: support winget opencode upgrades - #30025
pascalandr wants to merge 4 commits into
Conversation
Detect Winget-managed opencode installs using the WinGet links path and package list evidence, then route upgrades through winget upgrade for SST.opencode. Add installation tests for Winget detection, latest version lookup, and upgrade command construction.
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Retain WinGet Links detection and explicit SST.opencode checks while simplifying method matching. Add disable-interactivity to the winget upgrade command and update installation tests for the current behavior.
|
This PR would solve a real pain point for Windows users who install via winget. The detection logic looks solid and the tests cover the main scenarios. Would love to see this merged soon. |
|
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. |
|
I believe this PR was closed incorrectly, and worth having 1 mn attention by mainteners instead of automatic blind closing without noticing reactions in the issue #30026 |
Issue for this PR
Closes #30026
Type of change
What does this PR do?
Adds Winget as an install method for opencode upgrades on Windows. Winget installs are detected from the WinGet Links shim path and from winget list --id SST.opencode --exact. When selected, the shared upgrade path runs winget upgrade --id SST.opencode --exact --accept-package-agreements --accept-source-agreements.
This lets both opencode upgrade and /global/upgrade use the package manager that installed opencode.
How did you verify your code works?
Screenshots / recordings
N/A - non-UI change.
Checklist