-
Notifications
You must be signed in to change notification settings - Fork 962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command "scaffold theme-tests" doesn't work on v1.5.0 #4689
Comments
What about other subcommands? Maybe coincidence but I had trouble with |
|
I can't reproduce this. Could you post the output of (Just to note the error message at Scaffold_Command.php#L1097 should use |
|
|
Okay this is a weird bug which depends on how your WP-CLI phar is named and where it resides, and follows from #4024 so is present from v1.2.0 on. It doesn't arise if your WP-CLI phar has a So as a temporary workaround if you rename your v1.5.0 |
I've added
|
I also see weird subcommand breakage w/ 1.5.0. Reverting to 1.4.1 works. I can't tell from the surface whether it's related to this specific issue #4689 or not. Breaking example:
|
@lkraav this doesn't look like the same issue to me. Could you create a new issue for this? (Though I note that woocommerce memberships is a paid-for plugin so it will be difficult to reproduce/test. Also standard woocommerce commands seem to work ok (on limited testing).) |
creating the wp-config file doesnt seem to work:
changing the name works fine:
|
Just leaving a note that I am also running into this issue when installing via composer to a symfony project and trying to execute commands on it. |
Just wanted to add that I experienced this bug today. I initially renamed Using WP-CLI 2.10.0 |
FYI this was in the error log: [05-Mar-2024 20:15:52 America/New_York] PHP Warning: file_get_contents(phar://wp-cli.phar/vendor/wp-cli/wp-cli/templates/phar://bin/wpcli/vendor/wp-cli/config-command/templates/wp-config.mustache): Failed to open stream: phar error: "vendor/wp-cli/wp-cli/templates/phar:/bin/wpcli/vendor/wp-cli/config-command/templates/wp-config.mustache" is not a file in phar "wp-cli.phar" in phar:///home/user7/bin/wpcli/vendor/wp-cli/wp-cli/php/utils.php on line 608 |
Seems like the paths used for accessing the Mustache template files within the Phar file will need to be wrapped in |
Left a comment on the PR regarding this: #5918 (review) |
The command
scaffold theme-tests
doesn't work on v1.5.0. The error message isError: Couldn't find install-wp-tests.sh
. The same command works fine with v1.4.1.The text was updated successfully, but these errors were encountered: