Make WordPress Core

Changeset 65205


Ignore:
Timestamp:
11/02/2026 05:04:27 PM (less than one hour ago)
Author:
lancewillett
Message:

Build/Test Tools: Restore Composer argument forwarding during environment startup.

Forward arguments supplied to npm run env:start -- ... to composer update -W. This restores options such as --dry-run, which stopped reaching Composer when its invocation moved into start.js.

Follow-up to [65150].

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/15304

Props adrianmoldovanwp, lucatume.
Fixes #62807.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/local-env/scripts/start.js

    r65150 r65205  
    9696
    9797// `composer update` reaches repo.packagist.org, so it is re-attempted for the same reasons as `up`.
    98 const composer = local_env_utils.compose_with_retry( [ 'run', '-T', '--rm', 'php', 'composer', 'update', '-W' ], 3 );
     98const composer = local_env_utils.compose_with_retry( [ 'run', '-T', '--rm', 'php', 'composer', 'update', '-W', ...process.argv.slice( 2 ) ], 3 );
    9999
    100100if ( composer.status !== 0 ) {
Note: See TracChangeset for help on using the changeset viewer.