oven-sh/bun

Bun.spawn with a non-existant cwd prints error with wrong path

開放

#8,024 建立於 2024年1月7日

 (4 則留言) (0 個反應) (0 位負責人)Rust (4,486 個分叉)batch import
bugbun:spawngood first issue

倉庫指標

星標
 (90,348 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

adapted from my journal processing code:

    Bun.spawnSync({
      cmd: ['python3'],
      stdio: ["inherit", "inherit", "inherit"],
      cwd: `/something/that/doesnt/exist`
    });

What is the expected behavior?

print that the current working directory doesnt exist

What do you see instead?

it says the binary doesnt exist

Additional information

No response

貢獻者指南