Skip to content

Skip checking isExecutable for matched WP-CLI on Windows - #13

Merged
meszarosrob merged 3 commits into
mainfrom
fix/is-executable-check-on-win
Aug 6, 2026
Merged

Skip checking isExecutable for matched WP-CLI on Windows#13
meszarosrob merged 3 commits into
mainfrom
fix/is-executable-check-on-win

Conversation

@meszarosrob

Copy link
Copy Markdown
Contributor

Addresses #12.

Compared to the suggestion in the issue, this retains the current functionality (checking the file's executable permission) on non-Windows systems.

I think an earlier error message, as we have now, doesn't hurt in case some false positive wp matches occur, at least until we make the location of WP and WP-CLI configurable via an environment variable, as possibly suggested in the #7.

If more issues appear with Windows and we want to introduce more conditions, we can extract the isWindows into a class and inject it, but for now, I think this does it.

@meszarosrob
meszarosrob marked this pull request as ready for review August 5, 2026 12:32
@meszarosrob
meszarosrob requested a review from a team August 5, 2026 12:32
@meszarosrob
meszarosrob merged commit bac1e7d into main Aug 6, 2026
13 checks passed
@meszarosrob
meszarosrob deleted the fix/is-executable-check-on-win branch August 6, 2026 07:58
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.

[Bug]: WpCliPathFinder::find() throws "not executable" on Windows due to isExecutable() check

2 participants