-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix: large bunx
changes, mostly for better windows support
#9143
Conversation
❌ @paperdave 1 files with test failures on bun-darwin-aarch64: |
❌ @paperdave 3 files with test failures on linux-x64:
|
❌ @paperdave 1 files with test failures on linux-x64-baseline: |
❌ @paperdave 3 files with test failures on bun-darwin-x64:
|
❌🪟 @paperdave, there are 13 test regressions on Windows x86_64
|
bunx
changes, mostly for better windows support
Many test failures to fix first |
@@ -202,6 +207,21 @@ pub const Shebang = struct { | |||
return try Shebang.init(line, false); | |||
} | |||
|
|||
pub fn coerceNodeToBun(self: Shebang, buf: *[32766]u8) Shebang { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✂️
Assuming the test failures are gone, looks great. |
_ = nt.NtClose(process.hProcess); | ||
_ = nt.NtClose(process.hThread); | ||
_ = nt.NtClose(process.hProcess); | ||
_ = nt.NtClose(process.hThread); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paperdave was it intentional we close the thread handle only after the process has exited instead of immediately? since this handle is not used, couldn't we close it immediately?
inline for (.{ 0, 1 }) |attempt_number| iteration: { | ||
if (dbg) | ||
debug("lpCommandLine: {}\n", .{fmt16(std.mem.span(spawn_command_line))}); | ||
const did_process_spawn = k32.CreateProcessW( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should get/set the codepage before & after?
node.exe
failed due to not found, then it retries once with bun..bunx
fast path tobunx
#8918--bun
. TODO: verify this closes the following issues on all platforms:Bun isn't respecting shebangs in vite, even with --bun flag #6340Not a bug in Bun.--bun
#4974--bun
option beforecreate
command crashes while--bun
aftercreate
works fine #6215--verbose
passes verbose to the package managerstuff like this works now:
