Closed alustenberg closed 6 years ago
It's not possible to avoid dependency conflicts between independent packages installed with composer global require
.
The solution is to install the CLI with the recommended method, the Phar installer, as described in: https://github.com/platformsh/platformsh-cli#installation
curl -sS https://platform.sh/cli/installer | php
If you can't use that, and/or really want to use Composer, avoid composer global require
. Use something like cgr
instead to avoid dependency conflicts. As it happens, cgr
itself is written by Drush maintainers (and Drush also has a Phar-based install method).
I guess the .platform.app.yaml "dependencies->php" section could switch to using something like cgr
to avoid the conflicts problem.
(BTW version 4.x.x of the CLI will use Guzzle 6+ - at least thanks to the minimum PHP version it's a BC-breaking change - version 4 works (#699) but won't be released until there's a need)
During build of CLI within a container that also has
drupal/console
as a dependency, the build fails with the following dep resolution failureAppears this would need simultaneous dependency updates to guzzle 6.x against platform-cli as well as platform-client.