Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer.lock requires PHP 7.2 #35

Closed
whikloj opened this issue Mar 27, 2019 · 2 comments · Fixed by #39
Closed

composer.lock requires PHP 7.2 #35

whikloj opened this issue Mar 27, 2019 · 2 comments · Fixed by #39

Comments

@whikloj
Copy link
Contributor

whikloj commented Mar 27, 2019

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
Copy link
Contributor Author

whikloj commented Mar 27, 2019

Link to my success
Islandora-Devops/islandora-playbook#95 (comment)

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

@mjordan
Copy link
Owner

mjordan commented Mar 27, 2019

@whikloj sorry, I was writing a response to your comment back at Islandora-Devops/islandora-playbook#95 (comment) when you opened this. Yes, please open a PR if you are able.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants