Issue involves compatibility with a specific Docker Desktop version.
The issue arises from a compatibility problem between `wp-env` and Docker Desktop v4.67.0 on MacOS Intel, causing themes and plugins to fail linking and downloading. The problem is reproducible and stops occurring when reverting to Docker Desktop v4.66.1. The fix likely requires investigating Docker Desktop changes and ensuring compatibility with `wp-env`.
wp-env recently starting throwing errors when running wp-env start --update.
Issue started after updating Docker Desktop from v4.66.1 to v4.67.0.
Issue stopped occurring after manually reverting Docker Desktop back to v4.66.1, downloaded from the Docker Desktop release notes page.
On Docker Desktop v4.67.0, wp-env doesn't seem to download any external themes or plugins, or correctly link local themes or plugins. Linking a local theme results in a "Stylesheet is missing." error, when the theme does in fact have a style.css file containing the theme metadata.
Here's the CLI Log when running wp-env start --update:
> [email protected] up
> wp-env start --update
✖ afterStart Error:
ℹ Starting 'wp theme activate lab-kit' on the cli container.
Error: Stylesheet is missing.
✖ Command failed with exit code 1
Command failed with exit code 1
v4.67.0..wp-env.json & package.json config file, try linking external plugins, and a locally linked theme.wp-env start --updateCLI screenshot:
Example wp-env config file:
{
"themes": [ "./site/wp-content/themes/lab-kit" ],
"plugins": [
"./site/wp-content/plugins/lab-kit-blocks",
"https://downloads.wordpress.org/plugin/redirection.latest-stable.zip",
"https://downloads.wordpress.org/plugin/updraftplus.latest-stable.zip",
"https://downloads.wordpress.org/plugin/disable-comments.latest-stable.zip",
"https://downloads.wordpress.org/plugin/wordpress-seo.latest-stable.zip",
"https://downloads.wordpress.org/plugin/intuitive-custom-post-order.latest-stable.zip",
"https://downloads.wordpress.org/plugin/query-monitor.latest-stable.zip"
],
"config": {
"WP_DEBUG": true,
"WP_UPLOAD_MAX_FILESI
Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!