-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support plugin dependencies #66
Comments
So I just had a brief look at this. There might be ways to do this already right now without waiting for WP-CLI, but it would be rather hacky. So it's definitely better to wait for WP-CLI support here. |
Since wp-cli/extension-command#414 it's now possible to get the plugin dependencies: I've made some testing, and the current line is failing because of the missing dependencies: I suggest removing the install of What do you think of this approach @swissspidy ? |
That's definitely a step in the right direction, as either way we'd have to move the plugin out of the wp-env config. Ideally we would wait for proper WP-CLI support, but it could work. We'd need to turn the commas in Wanna submit a PR to give it a try? :-) |
The current WP-CLI doesn't include the latest wp-cli/extension-command, so the requires_plugins is still unavailable. |
We can just install WP-CLI nightly in the meantime: plugin-check-action/action.yml Line 65 in f32c500
-curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
+curl -o wp-cli.phar https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar |
Actually, scratch the above, that was incorrect. WP-CLI is run from within the wp-env container, where it can't really be updated. I was working on this in #132 but I think I really need to wait for the 2.11.0 release first. |
And here it is, no more hacky solutions needed. :) |
The Docker images were just updated too! docker-library/wordpress@f7e3d05 Let's see if they're already available via wp-env... 🤞 |
Not yet apparently. Maybe only deploying every once in a while :) |
Hi @swissspidy,
With the new WP 6.5 dependencies I'm getting an error of a plugin that depends of another.
Example error here
And... the test fails.
The current alternative is setting
wp-version
to 6.4, which doesn't rely on the dependencies and the plugin is correctly activated.Maybe the action could check the plugin dependencies and activate them also, while
wp-cli
doesn't directly support install/activate the required dependencies.As you've pointed out in #61 (comment), this should be fixed upstream on
wp-cli
.The text was updated successfully, but these errors were encountered: