Does not build on Arch Linux #4562

Open
opened 2026-02-16 17:44:35 -05:00 by yindo · 3 comments
Owner

Originally created by @agamsingh9 on GitHub (Jan 9, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Using paru -S opencode

==> Making package: opencode 1.1.10-1 (Fri 09 Jan 2026 04:50:30 PM CST)
==> Retrieving sources...
  -> Downloading opencode-1.1.10.tar.gz...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0
100 70.02M 100 70.02M   0      0 25.75M      0   00:02   00:02         28.22M
==> Validating source files with sha256sums...
    opencode-1.1.10.tar.gz ... Skipped
==> Making package: opencode 1.1.10-1 (Fri 09 Jan 2026 04:50:34 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found opencode-1.1.10.tar.gz
==> Validating source files with sha256sums...
    opencode-1.1.10.tar.gz ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting opencode-1.1.10.tar.gz with bsdtar
==> Sources are ready.
opencode-1.1.10-1: parsing pkg list...
==> Making package: opencode 1.1.10-1 (Fri 09 Jan 2026 04:50:42 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
bun install v1.3.5-canary.1 (fa5a5bbe)
error: Workspace dependency "@opencode-ai/plugin" not found

Searched in "./*"

Workspace documentation: https://bun.com/docs/install/workspaces


error: Workspace dependency "@opencode-ai/script" not found

Searched in "./*"

Workspace documentation: https://bun.com/docs/install/workspaces

error: @opencode-ai/plugin@workspace:* failed to resolve
error: @opencode-ai/script@workspace:* failed to resolve
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'opencode-1.1.10-1':
error: packages failed to build: opencode-1.1.10-1

Using paru -S opencode-bin

Opencode installs sucessfully, but running opencode hangs forever.

Running opencode run 'hi' returns

Error: Unexpected error, check log file at /home/agam/.local/share/opencode/log/2026-01-09T225528.log for more details

error: Cannot find module '../../runtime/encrypt.js' from '/home/agam/.cache/opencode/node_modules/jose/dist/browser/jwe/flattened/encrypt.js'

Plugins

No response

OpenCode version

1.1.10-1

Steps to reproduce

paru -S opencode

Screenshot and/or share link

No response

Operating System

Arch Linux (virtual machine)

Terminal

tty (/dev/pts/0) through ssh from iTerm2

Originally created by @agamsingh9 on GitHub (Jan 9, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ### Using `paru -S opencode` ``` ==> Making package: opencode 1.1.10-1 (Fri 09 Jan 2026 04:50:30 PM CST) ==> Retrieving sources... -> Downloading opencode-1.1.10.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 100 70.02M 100 70.02M 0 0 25.75M 0 00:02 00:02 28.22M ==> Validating source files with sha256sums... opencode-1.1.10.tar.gz ... Skipped ==> Making package: opencode 1.1.10-1 (Fri 09 Jan 2026 04:50:34 PM CST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found opencode-1.1.10.tar.gz ==> Validating source files with sha256sums... opencode-1.1.10.tar.gz ... Skipped ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Extracting opencode-1.1.10.tar.gz with bsdtar ==> Sources are ready. opencode-1.1.10-1: parsing pkg list... ==> Making package: opencode 1.1.10-1 (Fri 09 Jan 2026 04:50:42 PM CST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Starting build()... bun install v1.3.5-canary.1 (fa5a5bbe) error: Workspace dependency "@opencode-ai/plugin" not found Searched in "./*" Workspace documentation: https://bun.com/docs/install/workspaces error: Workspace dependency "@opencode-ai/script" not found Searched in "./*" Workspace documentation: https://bun.com/docs/install/workspaces error: @opencode-ai/plugin@workspace:* failed to resolve error: @opencode-ai/script@workspace:* failed to resolve ==> ERROR: A failure occurred in build(). Aborting... error: failed to build 'opencode-1.1.10-1': error: packages failed to build: opencode-1.1.10-1 ``` ### Using `paru -S opencode-bin` Opencode installs sucessfully, but running `opencode` hangs forever. Running `opencode run 'hi'` returns ``` Error: Unexpected error, check log file at /home/agam/.local/share/opencode/log/2026-01-09T225528.log for more details error: Cannot find module '../../runtime/encrypt.js' from '/home/agam/.cache/opencode/node_modules/jose/dist/browser/jwe/flattened/encrypt.js' ``` ### Plugins _No response_ ### OpenCode version 1.1.10-1 ### Steps to reproduce `paru -S opencode` ### Screenshot and/or share link _No response_ ### Operating System Arch Linux (virtual machine) ### Terminal tty (`/dev/pts/0`) through `ssh` from iTerm2
yindo added the bugnix labels 2026-02-16 17:44:35 -05:00
Author
Owner

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

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

  • #5860: error: Cannot find module '@opencode-ai/plugin' from (related workspace dependency issue)
  • #6080: OpenCode TUI Hangs on Fedora Linux (npm & bun & standalone) (related to hanging issue)
  • #4442: Bun install package in NFS (related to bun install issues)

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

@github-actions[bot] commented on GitHub (Jan 9, 2026): This issue might be a duplicate of existing issues. Please check: - #5860: error: Cannot find module '@opencode-ai/plugin' from (related workspace dependency issue) - #6080: OpenCode TUI Hangs on Fedora Linux (npm & bun & standalone) (related to hanging issue) - #4442: Bun install package in NFS (related to bun install issues) Feel free to ignore if none of these address your specific case.
Author
Owner

@agamsingh9 commented on GitHub (Jan 9, 2026):

Looks like the AUR release has been updated to 1.1.11. I tried it again but get another error now

==> Making package: opencode 1.1.11-1 (Fri 09 Jan 2026 10:21:43 PM CST)
==> Retrieving sources...
  -> Downloading opencode-1.1.11.tar.gz...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0
100 70.02M   0 70.02M   0      0 21.35M      0           00:03         22.84M
==> Validating source files with sha256sums...
    opencode-1.1.11.tar.gz ... Skipped
==> Making package: opencode 1.1.11-1 (Fri 09 Jan 2026 10:21:47 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found opencode-1.1.11.tar.gz
==> Validating source files with sha256sums...
    opencode-1.1.11.tar.gz ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting opencode-1.1.11.tar.gz with bsdtar
==> Sources are ready.
opencode-1.1.11-1: parsing pkg list...
==> Making package: opencode 1.1.11-1 (Fri 09 Jan 2026 10:21:56 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
bun install v1.3.5-canary.1 (fa5a5bbe)

$ husky
.git can't be found
+ @actions/artifact@5.0.1
+ @tsconfig/bun@1.0.9
+ husky@9.1.7
+ prettier@3.6.2
+ sst@3.17.23
+ turbo@2.5.6
+ @aws-sdk/client-s3@3.933.0
+ typescript@5.8.2 (v5.9.3 available)

3548 packages installed [6.73s]
error: Cannot find module '../buildMatchMemberExpression.js' from '/home/agam/.cache/paru/clone/opencode/src/opencode-1.1.11/node_modules/.bun/@babel+types@7.28.5/node_modules/@babel/types/lib/validators/react/isReactComponent.js'

Bun v1.3.5-canary.1+fa5a5bbe5 (Linux x64)
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'opencode-1.1.11-1':
error: packages failed to build: opencode-1.1.11-1
@agamsingh9 commented on GitHub (Jan 9, 2026): Looks like the AUR release has been updated to 1.1.11. I tried it again but get another error now ``` ==> Making package: opencode 1.1.11-1 (Fri 09 Jan 2026 10:21:43 PM CST) ==> Retrieving sources... -> Downloading opencode-1.1.11.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 100 70.02M 0 70.02M 0 0 21.35M 0 00:03 22.84M ==> Validating source files with sha256sums... opencode-1.1.11.tar.gz ... Skipped ==> Making package: opencode 1.1.11-1 (Fri 09 Jan 2026 10:21:47 PM CST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found opencode-1.1.11.tar.gz ==> Validating source files with sha256sums... opencode-1.1.11.tar.gz ... Skipped ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Extracting opencode-1.1.11.tar.gz with bsdtar ==> Sources are ready. opencode-1.1.11-1: parsing pkg list... ==> Making package: opencode 1.1.11-1 (Fri 09 Jan 2026 10:21:56 PM CST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Removing existing $pkgdir/ directory... ==> Starting build()... bun install v1.3.5-canary.1 (fa5a5bbe) $ husky .git can't be found + @actions/artifact@5.0.1 + @tsconfig/bun@1.0.9 + husky@9.1.7 + prettier@3.6.2 + sst@3.17.23 + turbo@2.5.6 + @aws-sdk/client-s3@3.933.0 + typescript@5.8.2 (v5.9.3 available) 3548 packages installed [6.73s] error: Cannot find module '../buildMatchMemberExpression.js' from '/home/agam/.cache/paru/clone/opencode/src/opencode-1.1.11/node_modules/.bun/@babel+types@7.28.5/node_modules/@babel/types/lib/validators/react/isReactComponent.js' Bun v1.3.5-canary.1+fa5a5bbe5 (Linux x64) ==> ERROR: A failure occurred in build(). Aborting... error: failed to build 'opencode-1.1.11-1': error: packages failed to build: opencode-1.1.11-1 ```
Author
Owner

@agamsingh9 commented on GitHub (Jan 19, 2026):

Hello, will this be attended to @rekram1-node

@agamsingh9 commented on GitHub (Jan 19, 2026): Hello, will this be attended to @rekram1-node
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4562