Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal 8.3.2 requires symfony/validator ~2.8
Validators module requires symfony/validator 2.7.5 and can not be installed with composer on a Drupal 8.3.2 website =(
$ composer require drupal/validators 1.0.0
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
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
- Can only install one of: symfony/validator[v2.7.5, v2.8.20].
- Can only install one of: symfony/validator[v2.8.20, v2.7.5].
- Can only install one of: symfony/validator[v2.7.5, v2.8.20].
- drupal/validators 1.0.0 requires symfony/validator 2.7.5 -> satisfiable by symfony/validator[v2.7.5].
- Installation request for drupal/validators 1.0.0 -> satisfiable by drupal/validators[1.0.0].
- Installation request for symfony/validator (locked at v2.8.20) -> satisfiable by symfony/validator[v2.8.20].
Installation failed, reverting ./composer.json to its original content.
Comment | File | Size | Author |
---|---|---|---|
#5 | can_not_install_module-2880678-5.patch | 282 bytes | legovaer |
Comments
Comment #2
_vl_ CreditAttribution: _vl_ as a volunteer commentedI think you can upgrade to 2.8.x with no problems : https://github.com/symfony/validator/blob/master/CHANGELOG.md
Comment #4
legovaerRe-testing as there seem to be some issues with the automated tests.
Comment #5
legovaerThe patch in #2 was OK, but I'm more in favor of using this version format instead.
Comment #6
legovaerWell, obviously the tests don't work as our patch is only applied after installing the module. Let's see if we can run the automated tests on a different branch.
Comment #7
legovaerI was not able to specify the branch for the automated tests, but I tested patch from #5 in simplytest.me. I executed all the automated tests and they all passed. So I'd say, RTBC.
Comment #9
steveoriolHow do use the patch if you can not install the module with composer?
Comment #11
legovaerIn the meantime I've updated the module to use symfony/validator ^3.4 in order to allow installing this module via composer again.
Comment #12
legovaerThis issue is fixed in version 8.x-1.1