Update docker runner to resolve docker path using `/usr/bin/env` by thelovekesh · Pull Request #5936 · wp-cli/wp-cli

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

schlessera merged 2 commits intowp-cli:mainfrom

thelovekesh:patch-1

Apr 26, 2024

Merged

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

@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

Reviewers

@swissspidy swissspidy swissspidy approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.11.0

Development

Successfully merging this pull request may close these issues.

3 participants

@thelovekesh @swissspidy @schlessera