Skip to content

Commit

Permalink
fix(cli): on windows use shell option to spawn runtime process (#1333)
Browse files Browse the repository at this point in the history
This is a quick fix that seems to work in my testing.

As a follow up we should explore: https://www.npmjs.com/package/cross-spawn

Filed #1332 to track
  • Loading branch information
pavelgj authored Nov 19, 2024
1 parent d7c3549 commit a2008ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions genkit-tools/cli/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const start = new Command('start')
runtimePromise = new Promise((urlResolver, reject) => {
const appProcess = spawn(start.args[0], start.args.slice(1), {
env: { ...process.env, GENKIT_ENV: 'dev' },
shell: process.platform === 'win32',
});

const originalStdIn = process.stdin;
Expand Down

0 comments on commit a2008ff

Please sign in to comment.