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

Cannot install laminas-cli in latest mezzio-skeleton #45

Closed
samsonasik opened this issue Aug 12, 2020 · 7 comments · Fixed by mezzio/mezzio-skeleton#26
Closed

Cannot install laminas-cli in latest mezzio-skeleton #45

samsonasik opened this issue Aug 12, 2020 · 7 comments · Fixed by mezzio/mezzio-skeleton#26
Labels
Documentation Needed Help Wanted Extra attention is needed

Comments

@samsonasik
Copy link
Member

Bug Report

Q A
Version(s) 0.1.4

Summary

Tried to install it in latest mezzio-skeleton

Current behavior

Not installable.

How to reproduce

➜  composer create-project mezzio/mezzio-skeleton test
➜  cd test
➜  composer require laminas/laminas-cli
    1/4:        http://repo.packagist.org/p/provider-latest$11e6348805cae32ebd6c6c7d1ff7ab491d72ca90de2f3c3a0e448452cca405e9.json
    2/4:        http://repo.packagist.org/p/provider-2020-07$0cdff68719316789b661c588c8a9061d4bbd76d8e3d34c987ede2b0502e0d1a1.json
    3/4:        http://repo.packagist.org/p/provider-2020-04$c74e09d539df61e1cd88b51bdcd88fde1935631216b25e32ab4ed82da374fa98.json
    4/4:        http://repo.packagist.org/p/provider-2019$4f67eba0a53c71c76b602cf13164f7b247cc570724c08fa78c1d62f0e1155d69.json
    Finished: success: 4, skipped: 0, failure: 0, total: 4
Using version ^0.1.4 for laminas/laminas-cli
./composer.json has been updated
    1/2:        http://repo.packagist.org/p/provider-latest$1be887d9b0ea6bdf313beccb8c0e62db43210a08a738c839605abd8d8cffbc3c.json
    2/2:        http://repo.packagist.org/p/provider-2020-07$4affc5e29aa32a89c972f57d7267889a3bc64750a9186a467ce72a56773758c2.json
    Finished: success: 2, skipped: 0, failure: 0, total: 2
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
    - don't install ocramius/package-versions 1.9.0|don't install composer/package-versions-deprecated 1.10.99
    - don't install composer/package-versions-deprecated 1.10.99|remove ocramius/package-versions 1.9.0
    - don't install composer/package-versions-deprecated 1.10.99|don't install ocramius/package-versions 1.9.0
    - laminas/laminas-cli 0.1.4 requires composer/package-versions-deprecated ^1.10.99 -> satisfiable by composer/package-versions-deprecated[1.10.99].
    - Installation request for laminas/laminas-cli ^0.1.4 -> satisfiable by laminas/laminas-cli[0.1.4].
    - Installation request for ocramius/package-versions (locked at 1.9.0) -> satisfiable by ocramius/package-versions[1.9.0].


Installation failed, reverting ./composer.json to its original content.

Additional info: php version: 7.4

@weierophinney
Copy link
Member

oof. That's more of an issue with the skeleton, to be honest.

For now, change the ocramius/package-versions entry in your application to composer/package-versions-deprecated. (Ideally, the latter would be marked as a replacement of the former, but that's evidently not the case yet.) After that, try installing laminas-cli.

@weierophinney
Copy link
Member

grrr... it IS marked as a replacement. But I forgot that if a package is required in the root package, a nested dependency cannot act as a replacement.

So:

$ composer require composer/package-versions-deprecated laminas/laminas-cli

should get the job done.

@samsonasik
Copy link
Member Author

@weierophinney Thank you, that seems working. I will transfer the issue to the mezzio-skeleton.

@samsonasik
Copy link
Member Author

oh, can't transfer to different org

samsonasik added a commit to samsonasik/mezzio-skeleton that referenced this issue Aug 12, 2020
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@samsonasik
Copy link
Member Author

I create PR at mezzio/mezzio-skeleton#26 for it.

@weierophinney
Copy link
Member

@samsonasik I think we should also document this solution in the FAQ, because people who have built from either the Mezzio or Laminas skeletons are going to run into this as they start adopting laminas-cli.

@samsonasik
Copy link
Member Author

@weierophinney I created PR for FAQ addition at #46

weierophinney pushed a commit to mezzio/mezzio-skeleton that referenced this issue Aug 14, 2020
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Needed Help Wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants