New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation error #20
Comments
Hi @amitgoyal, this is a Known issue: https://github.com/drupal8-rector/drupal8-rector#known-issues Try to remove PHPUnit or install Drupal 8 rector globally with |
Hi @mxr576 - Thanks for your quick reply! Actually I tried removing packages but couldn't install the library. Not sure if I am doing something wrong, ➜ d9 git:(8.8.x) ✗ composer global remove phpunit/phpunit Changed current directory to /Users/amit.goyal/.composer Changed current directory to /Users/amit.goyal/.composer Problem 1 Installation failed, reverting ./composer.json to its original content. |
Try to figure out what depends on Try to remove the |
Actually I have vanilla Drupal 8.8.x on my local. Nothing much have been setup as such. I also tried setting up globally but that also didn't work. Looks like lot of mess on my system. ➜ d9 git:(8.8.x) ✗ composer why sebastian/diff phpunit/phpunit 6.5.14 requires sebastian/diff (^2.0) ➜ d9 git:(8.8.x) ✗ composer global require drupal8-rector/drupal8-rector Problem 1 Installation failed, reverting ./composer.json to its original content. |
|
Thanks @mxr576, I will update the issue in case it worked for me. |
@amitgoyal you might try applying the patch that allows PHPUnit 7 to be installed in D8.8 https://www.drupal.org/project/drupal/issues/2950132 |
@mondrake I tried the patch on https://www.drupal.org/project/drupal/issues/2950132 and patch applied successfully but still getting below errors due to composer dependencies.
cc @amitgoyal |
@joshirohit100 @amitgoyal difficult to say... try to upgrade the dependencies AFTER applying the patch and BEFORE requiring drupal8-rector/drupal8-rector:
then |
See draft CR https://www.drupal.org/node/3078763 |
The following worked for me:
|
Thanks @mondrake, this worked for me as well. cc: @joshirohit100 |
You can apparently now do this without the patch:
See https://www.drupal.org/node/3078763 for the change record. |
Probably it is going to be the best in the longterm run if we also phar-ify Drupal 8 Rector, just like Tomas did with Rector recently. |
Closed in favor of #38. |
Hi - I am using latest version of Drupal 8.8.x (commit 9a3477e83b9ae358ba7288a842b571e85b8e1793) but when I try to install drupal8-rector, I am getting following issues,
`
➜ d9 git:(8.8.x) ✗ composer require --dev drupal8-rector/drupal8-rector
1/2: http://repo.packagist.org/p/provider-latest$d21f81ccc7a4e0aa6dd05bda6641635b6798db583841db2aba7ec37276b7334d.json
2/2: http://repo.packagist.org/p/provider-2018-07$05514ee5642c8a8c5edaa1f0512a38e5fd7bef7db440185f3f91b79d995666dd.json
Finished: success: 2, skipped: 0, failure: 0, total: 2
Using version ^0.1.0 for drupal8-rector/drupal8-rector
./composer.json has been updated
1/3: http://repo.packagist.org/p/provider-latest$a9e2e19cecf04979cd1f6a366cf83dd9153302ed66298632471079983bc37ff8.json
2/3: http://repo.packagist.org/p/provider-2019-04$9823a8e102db891185800a2f241561a62027208f3355a8689a63714ae3a84c9e.json
3/3: http://repo.packagist.org/p/provider-2018$4d03824f9c752e4d939c278094fe0764b85da988c987208070f10584a1196c83.json
Finished: success: 3, skipped: 0, failure: 0, total: 3
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal8-rector/drupal8-rector 0.1.0 requires rector/rector 0.4.4 -> satisfiable by rector/rector[v0.4.4].
- Installation request for drupal8-rector/drupal8-rector ^0.1.0 -> satisfiable by drupal8-rector/drupal8-rector[0.1.0].
- Conclusion: remove sebastian/diff 1.4.3
- Conclusion: don't install sebastian/diff 1.4.3
- rector/rector v0.4.4 requires sebastian/diff ^3.0 -> satisfiable by sebastian/diff[3.0.0, 3.0.1, 3.0.2, 3.0.x-dev].
- Can only install one of: sebastian/diff[3.0.0, 1.4.3].
- Can only install one of: sebastian/diff[3.0.1, 1.4.3].
- Can only install one of: sebastian/diff[3.0.2, 1.4.3].
- Can only install one of: sebastian/diff[3.0.x-dev, 1.4.3].
- Installation request for sebastian/diff (locked at 1.4.3) -> satisfiable by sebastian/diff[1.4.3].
Installation failed, reverting ./composer.json to its original content.
`
The text was updated successfully, but these errors were encountered: