opencode
opencode copied to clipboard
AUR install cannot run because it cannot run `stat ./opencode`
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
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.
fixed