AUR install cannot run because it cannot run stat ./opencode #2601

Closed
opened 2026-02-16 17:36:23 -05:00 by yindo · 2 comments
Owner

Originally created by @samhwang on GitHub (Nov 5, 2025).

Description

At first I thought this was a paru issue, but then I realized I can reproduce this using yay.

Terminal output for paru -S opencode:

==> Starting build()...
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat './opencode': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'opencode-1.0.24-1':
error: packages failed to build: opencode-1.0.24-1

Terminal output for yay -S opencode:

==> Starting build()...
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat './opencode': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: opencode-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
opencode - exit status 4

OpenCode version

1.0.24

Steps to reproduce

In an Arch Linux install, run either yay opencode or paru opencode and choose aur/opencode.

Screenshot and/or share link

No response

Operating System

Arch Linux

Terminal

Ghostty

Originally created by @samhwang on GitHub (Nov 5, 2025). ### Description At first I thought this was a `paru` issue, but then I realized I can reproduce this using `yay`. Terminal output for `paru -S opencode`: ```shell ==> Starting build()... ==> Entering fakeroot environment... ==> Starting package()... install: cannot stat './opencode': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... error: failed to build 'opencode-1.0.24-1': error: packages failed to build: opencode-1.0.24-1 ``` Terminal output for `yay -S opencode`: ```shell ==> Starting build()... ==> Entering fakeroot environment... ==> Starting package()... install: cannot stat './opencode': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... -> error making: opencode-exit status 4 -> Failed to install the following packages. Manual intervention is required: opencode - exit status 4 ``` ### OpenCode version 1.0.24 ### Steps to reproduce In an Arch Linux install, run either `yay opencode` or `paru opencode` and choose `aur/opencode`. ### Screenshot and/or share link _No response_ ### Operating System Arch Linux ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:36:23 -05:00
yindo closed this issue 2026-02-16 17:36:23 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2025):

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

  • #3739: Discusses how the AUR PKGBUILD still uses outdated Go-based build instructions that no longer exist in v1.x (moved to OpenTUI architecture)
  • #3773: Similar AUR build failure on Arch Linux v1.0.12 with build errors during package creation
  • #3282: Previous AUR build failure with dependency resolution issues

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

@github-actions[bot] commented on GitHub (Nov 5, 2025): This issue might be a duplicate of existing issues. Please check: - #3739: Discusses how the AUR PKGBUILD still uses outdated Go-based build instructions that no longer exist in v1.x (moved to OpenTUI architecture) - #3773: Similar AUR build failure on Arch Linux v1.0.12 with build errors during package creation - #3282: Previous AUR build failure with dependency resolution issues Feel free to ignore if none of these address your specific case.
Author
Owner

@thdxr commented on GitHub (Nov 5, 2025):

fixed

@thdxr commented on GitHub (Nov 5, 2025): fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2601