Installation requirements for symfony / symfony/finder
My current globally installed composer packages have installed symfony/finder v4.2.3 and due to the version constraints by this tool (https://github.com/grasmash/composerize-drupal/blob/master/composer.json#L9) I'm not able to install.
Do you know if there's anything specific that would break by changing the required version to also include v4 for symfony/finder?
For clarity this is what I saw when running the global require for this package:
$ composer global require grasmash/composerize-drupal
Changed current directory to /Users/chris.guitarte/.composer
1/12: http://repo.packagist.org/p/provider-archived$1c501a81e307413f5372c055b020fc05e6039a125d9c2934264501e71d140948.json
2/12: http://repo.packagist.org/p/provider-2019-07$dfb6642cf24d76c0f65ad4c81f7446ab49cd95f3ce8e30767fd166f4455f7855.json
3/12: http://repo.packagist.org/p/provider-latest$1f5337c8ba98a49b0f581a60f55f2fc6f07fb03378b48a781bbd07b9bf5e38a4.json
4/12: http://repo.packagist.org/p/provider-2018-10$dd1321989783955875bf9bf7559a9c26b224371cb0b231fb1115c059e29795a4.json
5/12: http://repo.packagist.org/p/provider-2019-01$b6ca82c46e95586fe362957cf0664965660703d780b0bd09d9ba364afa24280a.json
6/12: http://repo.packagist.org/p/provider-2015$88d11772a9af49f5b1b0a440b4456973af6226f5bc9134f024fcebff45e4c58b.json
7/12: http://repo.packagist.org/p/provider-2014$6b18b0a89300ed8b4bae2ef1ac3cb5a08622c5daf71b584c8969a1fe2c0409ac.json
8/12: http://repo.packagist.org/p/provider-2016$e46b7191eaa1e5dd7eead6053232f23da57ac6b050cc7100aed6230e6ab8feaf.json
9/12: http://repo.packagist.org/p/provider-2017$1017f327302abb5f5c40f5445361f8c09a06ed17b94fba6699d1ac271b4cdfad.json
10/12: http://repo.packagist.org/p/provider-2019-04$f56f07fbed866488b7fd107a2ab1c57ea0aa557e4146779b91c38dc33860e294.json
11/12: http://repo.packagist.org/p/provider-2018$cdb6135f869f7ebf118b1e38552d2de0b08a451040416e06c0b1a22c6981698a.json
12/12: http://repo.packagist.org/p/provider-2013$d3150b95881581e9aadea242ce8ccd97474a93a9bf4cd46c5b2c88fea5f13fb0.json
Finished: success: 12, skipped: 0, failure: 0, total: 12
Using version ^1.2 for grasmash/composerize-drupal
./composer.json has been updated
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
- Conclusion: don't install grasmash/composerize-drupal 1.2.1
- Conclusion: remove symfony/finder v4.2.3
- Installation request for grasmash/composerize-drupal ^1.2 -> satisfiable by grasmash/composerize-drupal[1.2.0, 1.2.1].
- Conclusion: don't install symfony/finder v4.2.3
- grasmash/composerize-drupal 1.2.0 requires symfony/finder ^3.4 -> satisfiable by symfony/finder[v3.4.0, v3.4.1, v3.4.10, v3.4.11, v3.4.12, v3.4.13, v3.4.14, v3.4.15, v3.4.16, v3.4.17, v3.4.18, v3.4.19, v3.4.2, v3.4.20, v3.4.21, v3.4.22, v3.4.23, v3.4.24, v3.4.25, v3.4.26, v3.4.27, v3.4.28, v3.4.29, v3.4.3, v3.4.30, v3.4.4, v3.4.5, v3.4.6, v3.4.7, v3.4.8, v3.4.9].
- Can only install one of: symfony/finder[v3.4.0, v4.2.3].
- Can only install one of: symfony/finder[v3.4.1, v4.2.3].
- Can only install one of: symfony/finder[v3.4.10, v4.2.3].
- Can only install one of: symfony/finder[v3.4.11, v4.2.3].
- Can only install one of: symfony/finder[v3.4.12, v4.2.3].
- Can only install one of: symfony/finder[v3.4.13, v4.2.3].
- Can only install one of: symfony/finder[v3.4.14, v4.2.3].
- Can only install one of: symfony/finder[v3.4.15, v4.2.3].
- Can only install one of: symfony/finder[v3.4.16, v4.2.3].
- Can only install one of: symfony/finder[v3.4.17, v4.2.3].
- Can only install one of: symfony/finder[v3.4.18, v4.2.3].
- Can only install one of: symfony/finder[v3.4.19, v4.2.3].
- Can only install one of: symfony/finder[v3.4.2, v4.2.3].
- Can only install one of: symfony/finder[v3.4.20, v4.2.3].
- Can only install one of: symfony/finder[v3.4.21, v4.2.3].
- Can only install one of: symfony/finder[v3.4.22, v4.2.3].
- Can only install one of: symfony/finder[v3.4.23, v4.2.3].
- Can only install one of: symfony/finder[v3.4.24, v4.2.3].
- Can only install one of: symfony/finder[v3.4.25, v4.2.3].
- Can only install one of: symfony/finder[v3.4.26, v4.2.3].
- Can only install one of: symfony/finder[v3.4.27, v4.2.3].
- Can only install one of: symfony/finder[v3.4.28, v4.2.3].
- Can only install one of: symfony/finder[v3.4.29, v4.2.3].
- Can only install one of: symfony/finder[v3.4.3, v4.2.3].
- Can only install one of: symfony/finder[v3.4.30, v4.2.3].
- Can only install one of: symfony/finder[v3.4.4, v4.2.3].
- Can only install one of: symfony/finder[v3.4.5, v4.2.3].
- Can only install one of: symfony/finder[v3.4.6, v4.2.3].
- Can only install one of: symfony/finder[v3.4.7, v4.2.3].
- Can only install one of: symfony/finder[v3.4.8, v4.2.3].
- Can only install one of: symfony/finder[v3.4.9, v4.2.3].
- Installation request for symfony/finder (locked at v4.2.3) -> satisfiable by symfony/finder[v4.2.3].
Installation failed, reverting ./composer.json to its original content.
Thank you!
Looks like this fork https://github.com/chris-hamper/composerize-drupal has upgraded to Symfony 4 and allows symfony/finder ^4.0 - let me give that one a shot!
I'm having the same problem. Was the solution ever found?
Looks like this fork https://github.com/chris-hamper/composerize-drupal has upgraded to Symfony 4 and allows symfony/finder ^4.0 - let me give that one a shot!
Thanks! It works as expected.
I'm having this exact problem (Ubuntu 19.10) How exactly do I install the chris-hamper fork? Its README has instructions to install the grasmash version.
$ composer global require chris-hamper/composerize-drupal
Changed current directory to /home/userid/.config/composer
In InitCommand.php line 771:
Could not find a matching version of package chris-hamper/composerize-drupal. Check the package spelling, your version constraint and that the package is available in a stability which matches your m
inimum-stability (stable).
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>...]
Hallo I am also stuck with this issue, any solution?
Hello @grasmash I am facing similar issue
`composer require grasmash/composerize-drupal
Using version ^1.3 for grasmash/composerize-drupal
./composer.json has been updated
Running composer update grasmash/composerize-drupal
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- grasmash/composerize-drupal[dev-master, 1.3.0] require symfony/finder ^3.4 -> found symfony/finder[v3.4.0-BETA1, ..., 3.4.x-dev] but the package is fixed to v5.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- grasmash/composerize-drupal 1.x-dev is an alias of grasmash/composerize-drupal dev-master and thus requires it to be installed too.
- Root composer.json requires grasmash/composerize-drupal ^1.3 -> satisfiable by grasmash/composerize-drupal[1.3.0, 1.x-dev (alias of dev-master)].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.`
Is there any solution to this?
Thank you.
It looks like you are using the Symfony 5 and this plug-in requires Symfony 3. I can take a look and see if I can make it compatible with multiple major versions of Symfony. It’s probably not too difficult to do.
That would be helpful. My Drupal project rely on Symfony 5.
Hi, any update on this one?
Using version ^1.3 for grasmash/composerize-drupal
./composer.json has been updated
Running composer update grasmash/composerize-drupal
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires grasmash/composerize-drupal ^1.3 -> satisfiable by grasmash/composerize-drupal[1.3.0].
- grasmash/composerize-drupal 1.3.0 requires symfony/finder ^3.4 -> found symfony/finder[v3.4.0, ..., v3.4.47] but the package is fixed to v4.4.41 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require grasmash/composerize-drupal:*" to figure out if any version is installable, or "composer require grasmash/composerize-drupal:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.