We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e37f53 commit 77c4aaeCopy full SHA for 77c4aae
genkit-tools/cli/src/utils/runtime-detector.ts
@@ -124,7 +124,10 @@ export function detectRuntime(): RuntimeInfo {
124
if (hasBunVersion || execMatchesBun || argv0MatchesBun) {
125
// Check if this is a Bun-compiled binary
126
// Bun compiled binaries have virtual paths like /$bunfs/root/...
127
- if (argv1 && argv1.startsWith('/$bunfs/')) {
+ if (
128
+ argv1 &&
129
+ (argv1.startsWith('/$bunfs/') || /^[A-Za-z]:[\\/]+~BUN[\\/]+/.test(argv1))
130
+ ) {
131
// This is a Bun-compiled binary
132
type = RUNTIME_COMPILED;
133
scriptPath = undefined;
0 commit comments