The open source coding agent.
TypeScript
fix: add --use-system-ca flag in execArgv
Aiden Clinea2f80f7c0db5
diff --git a/nix/scripts/bun-build.ts b/nix/scripts/bun-build.tsindex a227081639d..e607676cb11 100644--- a/nix/scripts/bun-build.ts+++ b/nix/scripts/bun-build.ts@@ -60,7 +60,12 @@ const result = await Bun.build({compile: {target,outfile: "opencode",- execArgv: ["--user-agent=opencode/" + version, '--env-file=""', "--"],+ autoloadBunfig: false,+ autoloadDotenv: false,+ //@ts-ignore (bun types aren't up to date)+ autoloadTsconfig: true,+ autoloadPackageJson: true,+ execArgv: ["--user-agent=opencode/" + version, "--use-system-ca", "--"],windows: {},},})diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.tsindex f51cb292411..61a665312f0 100755--- a/packages/opencode/script/build.ts+++ b/packages/opencode/script/build.ts@@ -135,7 +135,7 @@ for (const item of targets) {autoloadPackageJson: true,target: name.replace(pkg.name, "bun") as any,outfile: `dist/${name}/bin/opencode`,- execArgv: [`--user-agent=opencode/${Script.version}`, "--"],+ execArgv: [`--user-agent=opencode/${Script.version}`, "--use-system-ca", "--"],windows: {},},entrypoints: ["./src/index.ts", parserWorker, workerPath],