fix: recognize bunx.EXE/node.EXE argv0 on Windows (case-insensitive) - #38884
fix: recognize bunx.EXE/node.EXE argv0 on Windows (case-insensitive)#38884deepshekhardas wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
WalkthroughThe PR adds an ASCII case-insensitive suffix matcher and uses it to detect ChangesWindows executable detection
Suggested reviewers: Merge Risk: ⚪ Minimal · up to This PR makes a localized Windows executable-name matching fix for bunx and node, with no actionable merge-blocking risk remaining beyond normal checks and review. 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for the PR, @deepshekhardas. #36827 has been open for this same issue since Aug 3 and takes the same approach (an ASCII case-insensitive suffix helper used from
If you see anything #36827 still misses, please comment over there. |
Fixes #36826
On Windows, executable-name detection compares argv0 case-sensitively:
bunx.EXE(e.g. produced by PATH x PATHEXT resolution) is not recognized asbunxand bun misclassifies itself as plainbun, failing witherror: Script not found. Same applies tonode.exevsNODE.EXE.strings::ends_with_case_insensitive_ascii(mirror of the existingstarts_with_case_insensitive_ascii) insrc/bun_core/string/immutable.rs+ unit testis_bun_x/is_nodeon Windows insrc/runtime/cli/mod.rs