mjordan / riprap

A PREMIS-compliant fixity checking microservice.
MIT License
13 stars 7 forks source link

composer.lock requires PHP 7.2 #35

Closed whikloj closed 5 years ago

whikloj commented 5 years ago

I was able to install RipRap inside a current claw-playbook, but composer install fails because the composer.lock file was generated with PHP 7.2.

It tries to use an version of proxy_manager that requires PHP 7.2.0 https://github.com/mjordan/riprap/blob/master/composer.lock#L1677

vagrant@claw:/var/www/html/riprap$ sudo composer install
Deprecation warning: Your package name riprap is invalid, it should have a vendor name, a forward slash, and a package name. The vendor and package name can be words separated by -, . or _. The complete name should match "[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9]([_.-]?[a-z0-9]+)*". Make sure you fix this as Composer 2.0 will error.
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for ocramius/proxy-manager 2.2.2 -> satisfiable by ocramius/proxy-manager[2.2.2].
    - ocramius/proxy-manager 2.2.2 requires php ^7.2.0 -> your PHP version (7.1.27) does not satisfy that requirement.
  Problem 2
    - ocramius/proxy-manager 2.2.2 requires php ^7.2.0 -> your PHP version (7.1.27) does not satisfy that requirement.
    - doctrine/migrations v2.0.0 requires ocramius/proxy-manager ^2.0.2 -> satisfiable by ocramius/proxy-manager[2.2.2].
    - Installation request for doctrine/migrations v2.0.0 -> satisfiable by doctrine/migrations[v2.0.0].

You'd need to create the composer.lock with an older version of PHP.

whikloj commented 5 years ago

Link to my success https://github.com/Islandora-Devops/claw-playbook/pull/95#issuecomment-477182013

Also, I could submit a PR with the updated composer.lock from the PHP 7.1.27 install if you want.

mjordan commented 5 years ago

@whikloj sorry, I was writing a response to your comment back at https://github.com/Islandora-Devops/claw-playbook/pull/95#issuecomment-477191330 when you opened this. Yes, please open a PR if you are able.