Closed stampirl closed 3 years ago
The wp-cli/scaffold-package-command
has not been completely moved over to v2 yet: https://github.com/wp-cli/scaffold-package-command/issues/180
I've been working on that and I am almost through. I want to have it completed for v2.1.0 which is due first week of November.
If you need scaffolding functionality earlier, you can briefly rollback to an older version just for the scaffold for now.
Thanks for help 😁 I'll rollback.
@schlessera @Geek-Daddy as workaround for this, you can set the flag --require_wp_cli
pointing to your current WP-CLI version.
e.g.:
wp scaffold package your-package-name --require_wp_cli=2.1.0
I think this problem is related to the default value set for this flag: ^1.1.0
This version constraint doesn't match 2.x versions.
https://github.com/wp-cli/scaffold-package-command/blob/master/src/ScaffoldPackageCommand.php#L47
This should be working as expected again now.
Hi. I'm trying to create new package with this command
wp scaffold package 'moriacat/octo_importer' --skip-tests --skip-github --skip-readme
but I keep getting error with dependencies. Output below.This is on Fedora 28 with PHP 7.2 and latest wp-cli 2.0.1.