Skip to content

cli: support updating Scoop opencode2 installations #52822

Description

@maharshi365

Description

OpenCode V2 cannot update a CLI installed from Scoop's versions bucket. The V2 updater does not include Scoop among its recognized installation methods, so opencode update cannot associate the running opencode2 executable with Scoop and does not run scoop update opencode2.

The Scoop opencode2 manifest installs the platform executable at ~\scoop\apps\opencode2\current\opencode.exe. Scoop itself correctly reports an available update, but the built-in updater requires a separate manual command.

Plugins

None

OpenCode version

2.0.20

Steps to reproduce

  1. Run scoop bucket add versions.
  2. Install V2 with scoop install opencode2.
  3. When an update is available, run opencode update or accept the TUI update action.
  4. Observe that OpenCode cannot detect the installation method instead of updating the opencode2 Scoop app.
  5. Confirm that scoop status lists the update and scoop update opencode2 applies it.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

PowerShell

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions