Skip to content

fix(nix): flake package should install opencode as the primary CLI #48663

Closed

Description

@ReStranger

Description

The Nix flake package currently installs opencode2 as the primary CLI entrypoint and sets meta.mainProgram to opencode2.

In V2, the primary command should be opencode, while opencode2 remains available as a compatibility alias. As a result, the Nix package exposes the wrong default binary name and does not generate completions for opencode.

Plugins

N/A

OpenCode version

v2.0.2

Steps to reproduce

  1. Build the package with nix build .#opencode.
  2. Inspect the resulting $out/bin directory or run the packaged binary.
  3. Notice that the package installs opencode2 as the primary command instead of opencode.

Screenshot and/or share link

N/A

Operating System

Nix build / Linux

Terminal

N/A

Activity

  1. Hona commented on Sep 22, 2026

    @Hona
    Member

    Fixed by #48662 (fix(nix): install opencode and keep opencode2 alias), merged to v2 as ce380fb on 2026-09-14. Closing manually because v2 is not the default branch, so the PR did not auto-close this issue.

  2. ReStranger commented on Sep 22, 2026

    @ReStranger
    ContributorAuthor

    Oh, I didn't notice

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