Skip to content

Commit 80b25c7

Browse files
authored
fix: preserve process.env when spawning formatter commands (#1850)
1 parent 3d9c5b4 commit 80b25c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/format/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export namespace Format {
7171
const proc = Bun.spawn({
7272
cmd: item.command.map((x) => x.replace("$FILE", file)),
7373
cwd: App.info().path.cwd,
74-
env: item.environment,
74+
env: { ...process.env, ...item.environment },
7575
stdout: "ignore",
7676
stderr: "ignore",
7777
})

0 commit comments

Comments
 (0)