markaspot / mark-a-spot

Public Civic Issue Tracking and Crowdsourcing / Mapping Platform based on Drupal. Open311 Server and Client Software
http://mark-a-spot.com
55 stars 30 forks source link

composer install/update no longer working: domoritz/leaflet-locatecontrol needs update #43

Closed carlosmirandalevy closed 7 years ago

carlosmirandalevy commented 7 years ago

Composer reports that:

markaspot/geolocation_nominatim dev-8.x-1.mas requires domoritz/leaflet-locatecontrol 0.60.0 -> no matching package found.

That's because the version of leaflet-locatecontrol defined in current composer.json is 0.55.0:

[repositories.10.package.name] domoritz/leaflet-locatecontrol
[repositories.10.package.version] 0.55.0
[repositories.10.package.type] drupal-library
[repositories.10.package.dist.url] https://github.com/domoritz/leaflet-locatecontrol/archive/v0.55.0.zip
[repositories.10.package.dist.type] zip

Manually editing composer to replace 0.55.0 with 0.60.0 allows composer to proceed.

See my console i/o below:

$ git clone -b master-8.x --single-branch https://github.com/markaspot/mark-a-spot.git
Cloning into 'mark-a-spot'...
remote: Counting objects: 23267, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 23267 (delta 0), reused 0 (delta 0), pack-reused 23265
Receiving objects: 100% (23267/23267), 46.47 MiB | 33.63 MiB/s, done.
Resolving deltas: 100% (10959/10959), done.
Checking connectivity... done.

$ cd mark-a-spot/

(master-8.x=) $ composer install
> 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
    - markaspot/geolocation_nominatim dev-8.x-1.mas requires domoritz/leaflet-locatecontrol 0.60.0 -> no matching package found.
    - markaspot/service_request dev-master requires markaspot/geolocation_nominatim dev-8.x-1.mas -> satisfiable by markaspot/geolocation_nominatim[dev-8.x-1.mas].
    - Installation request for markaspot/service_request dev-master -> satisfiable by markaspot/service_request[dev-master].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.