When installing geocoder via composer require drupal/geocoder, 2 of 3 submodules are missing: geocoder_address and geocoder_geofield. Additionally, when updating to the latest alpha will cause missing module warnings if both submodules existed before and were enabled. Downloading the release from the project page has all missing submodules included. So we have to assume that the composer installation of this project is broken somehow.

Funny enough, I tried to install one of the submodules manually via composer require drupal/geocoder_address just to check if this is even possible (just for fun since I wouldn't await it by a submodule). And I was slidely surprised seeing composer finding it indeed, but stating that it isn't compatible with installed geocoder version. Hm, something tells me, that these 2 issues are connected.

$ composer require drupal/geocoder_address
Using version ^2.0@alpha for drupal/geocoder_address
./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
    - drupal/geocoder_address 2.0.0-alpha5 requires drupal/geocoder 2.0.0-alpha5 -> satisfiable by drupal/geocoder[2.0.0-alpha5].
    - Conclusion: don't install drupal/geocoder 2.0.0-alpha5
    - drupal/geocoder_address 2.0.0-alpha4 requires drupal/geocoder 2.0.0-alpha4 -> satisfiable by drupal/geocoder[2.0.0-alpha4].
    - Conclusion: don't install drupal/geocoder 2.0.0-alpha4
    - Can only install one of: drupal/geocoder[2.0.0-alpha3, 2.0.0-alpha2].
    - Can only install one of: drupal/geocoder[2.0.0-alpha2, 2.0.0-alpha3].
    - Can only install one of: drupal/geocoder[2.0.0-alpha3, 2.0.0-alpha2].
    - drupal/geocoder_address 2.0.0-alpha3 requires drupal/geocoder 2.0.0-alpha3 -> satisfiable by drupal/geocoder[2.0.0-alpha3].
    - Installation request for drupal/geocoder_address ^2.0@alpha -> satisfiable by drupal/geocoder_address[2.0.0-alpha5, 2.0.0-alpha4, 2.0.0-alpha3].
    - Installation request for drupal/geocoder (locked at 2.0.0-alpha2, required as ^2.0@alpha) -> satisfiable by drupal/geocoder[2.0.0-alpha2].

(RANT: Did I mentioned enough how do I love composer in D8? We have more composer issues than real Drupal issues these days. Old problems fixed, new problems involved...)

Comments

diqidoq created an issue. See original summary.

dqd’s picture

Version: 8.x-2.x-dev » 8.x-2.0-alpha5
dqd’s picture

Issue summary: View changes
dqd’s picture

Issue summary: View changes
dqd’s picture

Issue summary: View changes
dqd’s picture

Issue summary: View changes
dqd’s picture

Issue summary: View changes
itamair’s picture

Status: Active » Closed (works as designed)

cannot reproduce. Try the last release and install using:

$ composer require drupal/geocoder

All the submodules will be installed inside the geocoder codebase.