I can't install or update opencode using nix profile add github:anomalyco/opencode #6979

Closed
opened 2026-02-16 18:05:48 -05:00 by yindo · 2 comments
Owner

Originally created by @elevennprime on GitHub (Jan 20, 2026).

Originally assigned to: @thdxr on GitHub.

Description

I am unable to update opencode to the latest version. I run into the following error message:

error: Cannot build '/nix/store/x8q64q0x64mvh0f12mmm7hpvp40pbxj7-opencode-1.1.27-95e9407.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/6q389wnymigsqkyhbp1j02h43fdwki2x-opencode-1.1.27-95e9407
       Last 19 log lines:
       > Using versionCheckHook
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/6gmray1ya11qm7lv3wrhclfk63pk2z35-source
       > source root is source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       >  9 | if (!expectedBunVersion) {
       > 10 |   throw new Error("packageManager field not found in root package.json")
       > 11 | }
       > 12 |
       > 13 | if (!satisfies(process.versions.bun, expectedBunVersion)) {
       > 14 |   throw new Error(`This script requires bun@${expectedBunVersion}, but you are using bun@${process.versions.bun}`)
       >                  ^
       > error: This script requires bun@1.3.5, but you are using bun@1.3.6
       >       at /build/source/packages/script/src/index.ts:14:13
       >
       > Bun v1.3.6 (Linux x64)
       For full logs, run:
         nix log /nix/store/x8q64q0x64mvh0f12mmm7hpvp40pbxj7-opencode-1.1.27-95e9407.drv

Plugins

None

OpenCode version

1.1.25

Steps to reproduce

  1. Try to install/upgrade opencode using flake
    command nix profile upgrade opencode for upgrading or nix profile add github:anomalyco/opencode for installing

Screenshot and/or share link

No response

Operating System

NixOS

Terminal

Alacritty

Originally created by @elevennprime on GitHub (Jan 20, 2026). Originally assigned to: @thdxr on GitHub. ### Description I am unable to update opencode to the latest version. I run into the following error message: ``` error: Cannot build '/nix/store/x8q64q0x64mvh0f12mmm7hpvp40pbxj7-opencode-1.1.27-95e9407.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/6q389wnymigsqkyhbp1j02h43fdwki2x-opencode-1.1.27-95e9407 Last 19 log lines: > Using versionCheckHook > Running phase: unpackPhase > unpacking source archive /nix/store/6gmray1ya11qm7lv3wrhclfk63pk2z35-source > source root is source > Running phase: patchPhase > Running phase: updateAutotoolsGnuConfigScriptsPhase > Running phase: configurePhase > Running phase: buildPhase > 9 | if (!expectedBunVersion) { > 10 | throw new Error("packageManager field not found in root package.json") > 11 | } > 12 | > 13 | if (!satisfies(process.versions.bun, expectedBunVersion)) { > 14 | throw new Error(`This script requires bun@${expectedBunVersion}, but you are using bun@${process.versions.bun}`) > ^ > error: This script requires bun@1.3.5, but you are using bun@1.3.6 > at /build/source/packages/script/src/index.ts:14:13 > > Bun v1.3.6 (Linux x64) For full logs, run: nix log /nix/store/x8q64q0x64mvh0f12mmm7hpvp40pbxj7-opencode-1.1.27-95e9407.drv ``` ### Plugins None ### OpenCode version 1.1.25 ### Steps to reproduce 1. Try to install/upgrade opencode using flake command `nix profile upgrade opencode` for upgrading or `nix profile add github:anomalyco/opencode` for installing ### Screenshot and/or share link _No response_ ### Operating System NixOS ### Terminal Alacritty
yindo added the bugnix labels 2026-02-16 18:05:48 -05:00
yindo closed this issue 2026-02-16 18:05:48 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8469: Relax bun version check to allow patch differences - This directly addresses the root cause of your error "requires bun@1.3.5, but you are using bun@1.3.6". The strict version checking is preventing installation with newer patch versions of bun.
  • #9285: Nix build fails when shell completion generation produces empty output - Related to other Nix flake installation failures
  • #5914: NixOS: custom tools fail because they cannot find imported modules - Related to Nix installation issues

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #8469: Relax bun version check to allow patch differences - This directly addresses the root cause of your error "requires bun@1.3.5, but you are using bun@1.3.6". The strict version checking is preventing installation with newer patch versions of bun. - #9285: Nix build fails when shell completion generation produces empty output - Related to other Nix flake installation failures - #5914: NixOS: custom tools fail because they cannot find imported modules - Related to Nix installation issues Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 20, 2026):

I think it is fixed now: https://github.com/anomalyco/opencode/commit/c4594c4c1ff82fbac4f5da1ca34bc4786fab4430

@rekram1-node commented on GitHub (Jan 20, 2026): I think it is fixed now: https://github.com/anomalyco/opencode/commit/c4594c4c1ff82fbac4f5da1ca34bc4786fab4430
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6979