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.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

_vl_ created an issue. See original summary.

_vl_’s picture

Status: Needs review » Needs work

The last submitted patch, 2: validator-issue-2880678.patch, failed testing.

legovaer’s picture

Re-testing as there seem to be some issues with the automated tests.

legovaer’s picture

The patch in #2 was OK, but I'm more in favor of using this version format instead.

legovaer’s picture

Well, 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.

legovaer’s picture

Status: Needs work » Reviewed & tested by the community

I 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.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 5: can_not_install_module-2880678-5.patch, failed testing.

steveoriol’s picture

How do use the patch if you can not install the module with composer?

  • legovaer authored 78cf1c6 on 8.x-1.x
    Issue #2880678 by legovaer, _vl_, The Reference: Can not install module...
legovaer’s picture

In the meantime I've updated the module to use symfony/validator ^3.4 in order to allow installing this module via composer again.

legovaer’s picture

Status: Needs work » Fixed

This issue is fixed in version 8.x-1.1

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.