Hi all, thanks for this awesome package. I've used WordPress for a few years, but am quite new to developing it, gutenberg, and node.js. I thought I'd share some problems I had while trying to get wp-env to start.
When I try to start a local WordPress environment with wp-env start , the command fails with a GitError, thrown by the simple-git library, while trying to clone WordPress (see screenshot below). Because that repository is quite large, I prefer avoiding that action, by keeping a local copy of the code base, and pointing a .wp-env.json at my local copy, with the configuration "core": "/path/to/local/WordPress", which seems to work well.
However, wp-env start still fails with a GitError - this time, while trying to clone PHPUnit (see screenshot). Unfortunately, glancing over the code of wp-env, I see no workaround to this problem.
Expected behavior: wp-env sucessfully starts a local environment, with and without the configuration "core": "/path/to/local/WordPress"
Actual behavior: The command wp-env start fails with the simple-git library's GitError
Step-by-step reproduction instructions
cd /path/to/some/local/wordpress-theme
wp-env start
wp-env throws GitError
In the current directory, add the file .wp-env.json, containing the configuration "core": "/path/to/some/local/WordPress"
wp-env start
Still throws GitError
Screenshots, screen recording, code snippet
GitError while trying to clone WordPress core
GitError while trying to clone PHPUnit
Environment info
Ubuntu 24.04, running in a Qemu virtual machine
wp-env 10.8.0
node v20.17.0
Docker 27.3.1, build ce12230
Please confirm that you have searched existing issues in the repo.
[X] Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Description
Hi all, thanks for this awesome package. I've used WordPress for a few years, but am quite new to developing it, gutenberg, and node.js. I thought I'd share some problems I had while trying to get wp-env to start.
When I try to start a local WordPress environment with
wp-env start
, the command fails with aGitError
, thrown by the simple-git library, while trying to clone WordPress (see screenshot below). Because that repository is quite large, I prefer avoiding that action, by keeping a local copy of the code base, and pointing a .wp-env.json at my local copy, with the configuration"core": "/path/to/local/WordPress"
, which seems to work well.However,
wp-env start
still fails with aGitError
- this time, while trying to clone PHPUnit (see screenshot). Unfortunately, glancing over the code of wp-env, I see no workaround to this problem.Expected behavior: wp-env sucessfully starts a local environment, with and without the configuration
"core": "/path/to/local/WordPress"
Actual behavior: The command
wp-env start
fails with the simple-git library'sGitError
Step-by-step reproduction instructions
cd /path/to/some/local/wordpress-theme
wp-env start
"core": "/path/to/some/local/WordPress"
wp-env start
Screenshots, screen recording, code snippet
GitError while trying to clone WordPress core
GitError while trying to clone PHPUnit
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.