mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
On Windows, std.os.environ may not be properly populated, causing Bun.spawn to not inherit parent process environment variables correctly. This fix uses libuv's uv_os_environ() API on Windows to properly retrieve environment variables. - Modified loadProcess() in env_loader.zig to use uv_os_environ on Windows - Falls back to std.os.environ if uv_os_environ fails - Added comprehensive tests for environment variable inheritance 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
51 KiB
51 KiB