opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Bun install package in NFS

Open junmediatek opened this issue 1 month ago • 7 comments

Description

When I use opencode on NFS, bun install has hardlink/symlink-related filesystem compatibility issues, which causes some packages to fail to install correctly, resulting in opencode not functioning properly.

You can modify below code to resolve this issue.

modify bunfig.toml as below [install] exact = true backend = "copyfile"

modify packages/opencode/src/bun/index.ts as below const args = ["add", "--force", "--exact", "--backend=copyfile", "--cwd", Global.Path.cache, pkg + "@" + version]

OpenCode version

latest

Steps to reproduce

  1. use opencode in the NFS

Screenshot and/or share link

Operating System

ubuntu 24

Terminal

VScode remoteSSH

Could you fix this issue?

junmediatek avatar Nov 18 '25 06:11 junmediatek