Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiled scripts cannot spawn deno #297

Open
tugrulates opened this issue Dec 31, 2024 · 0 comments
Open

Compiled scripts cannot spawn deno #297

tugrulates opened this issue Dec 31, 2024 · 0 comments

Comments

@tugrulates
Copy link

The rewrite from deno to Deno.execPath() does not hold for compiled binaries.

Minimal example (bug.ts):

import { $ } from "jsr:@david/dax@^0.42.0";

if (Deno.args.length == 0) {
  console.log(await $`deno --version`.text());
} else {
  console.log(Deno.args);
}
> deno run -A bug.ts
deno 2.1.4 (stable, release, aarch64-apple-darwin)
v8 13.0.245.12-rusty
typescript 5.6.2
> deno compile -A bug.ts
> ./bug
[ "--version" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant