gothinkster / laravel-realworld-example-app

Exemplary real world backend API built with Laravel
https://realworld.io
MIT License
1.2k stars 1.05k forks source link

Upgrade composer from 1 to 2 #41

Open sokolnikov911 opened 3 years ago

sokolnikov911 commented 3 years ago

Should upgrade Composer from version 1 to 2 released on October 24th, 2020.

lhsazevedo commented 3 years ago

Hi @sokolnikov911! Composer is not included in this repository. Did you had any problems using Composer version 2?

sokolnikov911 commented 3 years ago

@lhsazevedo hello!

Yes, i can't install with composer 2:

  Problem 1
    - kylekatarnls/update-helper is locked to version 1.1.1 and an update of this package was not requested.
    - kylekatarnls/update-helper 1.1.1 requires composer-plugin-api ^1.1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
  Problem 2
    - kylekatarnls/update-helper 1.1.1 requires composer-plugin-api ^1.1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - nesbot/carbon 1.39.0 requires kylekatarnls/update-helper ^1.1 -> satisfiable by kylekatarnls/update-helper[1.1.1].
    - nesbot/carbon is locked to version 1.39.0 and an update of this package was not requested.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2. 

As you see, problem in package nesbot/carbon, required by laravel/framework v5.5.

lhsazevedo commented 3 years ago

Thanks for reporting, this should be gone when we bring Laravel up to date. Waiting on https://github.com/gothinkster/realworld/issues/564