[wp-trac] [WordPress Trac] #63564: Dev environment should incorporate enhancements from wp-env for speed and non-interactive usage

WordPress Trac noreply at wordpress.org
Fri Jun 13 06:18:06 UTC 2025


#63564: Dev environment should incorporate enhancements from wp-env for speed and
non-interactive usage
-------------------------------------+--------------------------
 Reporter:  westonruter              |       Owner:  westonruter
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.8.2
Component:  Build/Test Tools         |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------------
Changes (by sandeepdahiya):

 * keywords:  has-patch => has-patch needs-testing


Comment:

 Hi @westonruter,

 When I try to apply the patch, I encounter the following issue:

 {{{
 Running "patch:https://github.com/WordPress/wordpress-
 develop/pull/8969.diff" (patch) task
 patching file .github/workflows/reusable-test-local-docker-
 environment-v1.yml
 patching file docker-compose.yml
 Hunk #1 succeeded at 110 (offset -1 lines).
 patching file package.json
 patching file tools/local-env/scripts/docker.js
 patching file tools/local-env/scripts/install.js
 Hunk #1 FAILED at 13.
 1 out of 1 hunk FAILED -- saving rejects to file tools/local-
 env/scripts/install.js.rej
 patching file tools/local-env/scripts/start.js
 patching file tools/local-env/scripts/utils.js

 Done.
 }}}


 The failed hunk appears to correspond to this line in install.js:

 {{{
 // Create wp-config.php.
 -wp_cli( `config create --dbname=wordpress_develop --dbuser=root
 --dbpass=password --dbhost=mysql --force --config-
 file=${process.env.LOCAL_DIR}/../wp-config.php` );
 +wp_cli( `config create --dbname=wordpress_develop --dbuser=root
 --dbpass=password --dbhost=mysql --force --config-file="wp-config.php"` );
 }}}

 I already have a wp-config.php file in my root directory, so I'm unsure
 why this part of the patch is failing or if it’s even necessary to create
 the config file in my case.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63564#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list