Repository navigation
Require symfony/finder for building the Phar in bundle tests - #84
Conversation
wp-cli-bundle's make-phar.php uses Symfony Finder, which it now requires in require-dev (wp-cli/wp-cli-bundle#1215). Dev requirements of a dependency aren't installed, and package-command no longer pulls it in through composer/composer, so require it here like the bundle's other dev dependencies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UWTd5pwpi2xQfDA6mUYkkx
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
The Generated by Claude Code |
The
wp-cli-bundlelegs (Phar and source) still fail withClass "Symfony\Component\Finder\Finder" not foundinvendor/wp-cli/wp-cli-bundle/utils/make-phar.php, e.g. https://github.com/wp-cli/automated-tests/actions/runs/45725576112/job/139594465174.wp-cli/wp-cli-bundle#1215 added
symfony/finderto the bundle'srequire-dev, which fixes the bundle's own builds. But here the bundle is a dependency, and Composer never installs a dependency'srequire-dev. Finder used to come in throughcomposer/composerviawp-cli/package-command, which wp-cli/package-command#248 removed.This requires
symfony/finderdirectly, like the bundle's other dev dependencies (wp-cli/package-command,wp-cli/wp-cli-tests) that are already listed here.^5.4matches what the bundle locks; acomposer update --dry-runresolves it to v5.4.45.Generated by Claude Code
Summary by CodeRabbit