MCPcopy
hub / github.com/garrytan/gstack / envWithBindir

Function envWithBindir

test/gstack-gbrain-sync.test.ts:654–656  ·  view source on GitHub ↗

* Build an env dict that prepends `bindir` to PATH. Bun's spawnSync does NOT * pick up runtime mutations of `process.env.PATH` — the env must be passed * explicitly to each spawn for the override to take effect.

(bindir: string)

Source from the content-addressed store, hash-verified

652 * explicitly to each spawn for the override to take effect.
653 */
654function envWithBindir(bindir: string): NodeJS.ProcessEnv {
655 return { ...process.env, PATH: `${bindir}:${process.env.PATH || ""}` };
656}
657
658describe("planHostnameFoldMigration", () => {
659 let bindir: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected