Closed strarsis closed 2 years ago
I'm also noticed this problem and I started updating a couple of these to dev-main
but then you get errors like.
Problem 17
- Root composer.json requires wp-cli/automated-tests dev-main -> satisfiable by wp-cli/automated-tests[dev-main].
- wp-cli/automated-tests dev-main requires wp-cli/wp-cli-bundle dev-main -> found wp-cli/wp-cli-bundle[dev-main, 2.6.x-dev (alias of dev-main)] but it conflicts with your root composer.json require (dev-master).
Problem 18
- Root composer.json requires wp-cli/config-command dev-main -> satisfiable by wp-cli/config-command[dev-main].
- wp-cli/config-command dev-main requires wp-cli/wp-config-transformer ^1.2.1 -> satisfiable by wp-cli/wp-config-transformer[v1.2.1, ..., v1.3.0] from composer repo (https://repo.packagist.org) but wp-cli/wp-config-transformer[dev-main] from path repo (wp-config-transformer) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
Problem 19
- Root composer.json requires wp-cli/scaffold-package-command dev-master -> satisfiable by wp-cli/scaffold-package-command[dev-master].
- wp-cli/scaffold-package-command dev-master requires wp-cli/package-command ^2 -> found wp-cli/package-command[dev-main, 2.x-dev (alias of dev-main)] but it conflicts with your root composer.json require (dev-master).
@janw-me: A bit on a tangent here: I need/installed this package because I want to test changes on the wp i18n
package. While the initial tests run fine, the behat
tests currently don't run on my workstation with this error:
> run-behat-tests
ERROR 1045 (28000): Access denied for user 'wp_cli_test'@'localhost' (using password: YES)
Script run-behat-tests handling the behat event returned with error code 1
Script @behat was called via test
The database has to be prepared first, I want to use the wp-cli-dev
package for that -
would this be the right approach for setting up the environment for testing of wp
cli
components?
@janw-me: Edit: I actually read the thing and it is mentioned there 😊, I should read docs more rigorously:
The database can be set up by running composer prepare-tests. This will create the database and the user and configure the necessary privileges. Note that this operation is not needed for every test run, it only needs to be run the first time for the initial setup.
I don't think so you could create a script for it. But I think you are hitting on something.
This is a barrier to entry. I think the error message should point to instructions. For people who do this for the first time, or once in a blue moon (me).
Also a optional php config file to override these settings. instead of adding the bash variables every time.
Earlier today I updated documentation pointing to set these variables.
My suggestion: Create a config file with CONSTANTS that are the current defaults. And allow users to set these. instead of running a bunch of exports every reboot/login.
A danger might be that setting that config file might end up in a pull request. But form a technical point I would say good-first-issue
Ideally, the process should no what the potential user errors are (if you've missed a step from the documentation) and print helpful messages to unblock the users at each potential pitfall.
It looks like the original issue was resolved here. Feel free to re-open if not, and open new issues for any further work.
Describe the current, buggy behavior
composer install
doesn't succeed with currentmain
branch:Describe how other contributors can replicate this bug Follow the installation instructions in this repository/of this package.
composer install
fails to complete successfully.Describe what you would expect as the correct outcome
composer install
succeeds.Let us know what environment you are running this on
Provide a possible solution Update incorrect versions in the
composer
packages to be installed?