Skip to content

Conflict between wp-cli required in composer and platform.app.yaml #16

@gilzow

Description

@gilzow

TL;DR - update .platform.app.yaml to require the same version of wp-cli/wp-cli-bundle as composer.json instead of wp-cli/wp-cli.

In platform.app.yaml, we list wp-cli (just the core framework package) as a dependency.

In composer.json we require the wp-cli-bundle (the full cli tool, not just the framework).

The instance of wp-cli required in .platform.app.yaml is installed to /app/.global/wp-cli/wp-cli/ and a link in /app/.global/vendor/bin. The instance required in composer.json is installed to /app/vendor/wp-cli with a link in /app/vendor/bin. Since /app/.global/vendor/bin is added to $PATH, this instance of wp-cli that is called with wp is the one in .global.

In wp-config.php we require the composer autoloader from the local composer install. We've now loaded two different autoloader files with potentially different versions of dependencies.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions