opencode: fix failed to change directory error

Fixed the `failed to change directory` error when running
`opencode` without arguments. The issue is related to the
update of bun 1.2.20 to 1.2.21 where they introduced the
`--compile-exec-argv` flag which has to be set to `"--"`
to achieve the same behavior as before (see the changelog
https://github.com/sst/opencode/issues/462#issuecomment-3261213732).
This commit is contained in:
Thierry Delafontaine
2025-09-06 08:39:46 +02:00
parent 2d46dafd9d
commit ec960b81e5
+1
View File
@@ -135,6 +135,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
--define OPENCODE_TUI_PATH="'${finalAttrs.tui}/bin/tui'" \
--define OPENCODE_VERSION="'${finalAttrs.version}'" \
--compile \
--compile-exec-argv="--" \
--target=${bun-target.${stdenvNoCC.hostPlatform.system}} \
--outfile=opencode \
./packages/opencode/src/index.ts \