Skip to content

Conversation

thelovekesh
Copy link
Member

Sometimes, the WP CLI process doesn't have access to PATH and it gives an error. This PR aims to resolve those binary using env which is already done for binaries like mysql.

Related: #5935

@thelovekesh thelovekesh requested a review from a team as a code owner April 26, 2024 08:16
@thelovekesh thelovekesh requested a review from swissspidy April 26, 2024 09:06
@swissspidy swissspidy added this to the 2.11.0 milestone Apr 26, 2024
@thelovekesh
Copy link
Member Author

@swissspidy Should we change these occurrences with Utils\force_env_on_nix_systems()?

$result = Process::create( '/usr/bin/env which mysql', null, null )->run();

@swissspidy
Copy link
Member

Probably? cc @schlessera for 2nd opinion

@schlessera schlessera merged commit d1f69d8 into wp-cli:main Apr 26, 2024
@thelovekesh thelovekesh deleted the patch-1 branch April 26, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants