Skip to content

Use Bin.add_exe instead of concat-ing Bin.exe always#13620

Merged
Alizter merged 1 commit intoocaml:mainfrom
punchagan:fix-which-candidates
Mar 24, 2026
Merged

Use Bin.add_exe instead of concat-ing Bin.exe always#13620
Alizter merged 1 commit intoocaml:mainfrom
punchagan:fix-which-candidates

Conversation

@punchagan
Copy link
Copy Markdown
Collaborator

@punchagan punchagan commented Feb 12, 2026

This PR fixes a bug with which on Windows where .exe.exe
candidates are generated and searched for.

@punchagan punchagan force-pushed the fix-which-candidates branch from 47d13e4 to d25aecf Compare February 12, 2026 08:44
@punchagan punchagan changed the title fix: Use Bin.add_exe instead of concat-ing Bin.exe always Use Bin.add_exe instead of concat-ing Bin.exe always Feb 12, 2026
@punchagan punchagan marked this pull request as ready for review February 12, 2026 08:44
@punchagan punchagan requested a review from Alizter February 12, 2026 08:44
@punchagan punchagan force-pushed the fix-which-candidates branch from d25aecf to c838c92 Compare February 12, 2026 09:45
@punchagan punchagan marked this pull request as draft February 12, 2026 10:23
@punchagan punchagan force-pushed the fix-which-candidates branch from c838c92 to a83cab8 Compare March 18, 2026 08:12
Alizter added a commit that referenced this pull request Mar 20, 2026
This PR demonstrates a bug with `which` on Windows where `.exe.exe`
candidates are generated and searched for. Will be fixed by:
- #13620 

Has been checked to run on Windows.

ppx_expect doesn't work on windows so we opt to use the `.expected`
functionality of `(test)`.
Signed-off-by: Puneeth Chaganti <punchagan@muse-amuse.in>
@punchagan punchagan force-pushed the fix-which-candidates branch from a83cab8 to 222e065 Compare March 24, 2026 11:33
@punchagan punchagan marked this pull request as ready for review March 24, 2026 12:16
@Alizter Alizter merged commit fea8dc3 into ocaml:main Mar 24, 2026
29 checks passed
@punchagan punchagan deleted the fix-which-candidates branch March 25, 2026 05:15
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

Successfully merging this pull request may close these issues.

2 participants