Closed bramus closed 5 years ago
Only “solution” I found was to:
rm composer.lock
rm -rf vendor/
composer.json
to 3.1.21
composer install
Surely there must be a better way, no?
Found the "better way":
composer require craftcms/cms:3.1.21 --update-with-dependencies
Might be helpful to have this in a README somewhere.
Best way is to use the ./craft update
command, which runs composer require
internally, but simplifies the workflow a bit. Documented here: https://docs.craftcms.com/v3/updating.html#updating-from-the-terminal
Thanks for the reminder to always “RTFM”, @brandonkelly ;)
Description
When upgrading from Craft 3.1.20.1 to 3.1.21, it won't work.
Steps to reproduce
composer require craftcms/cms:3.1.21
Additional info
Application Info
Plugins
Output
When running
composer require craftcms/cms:3.1.21
I get this:When manually trying to require
yiisoft/yii2
version2.0.17
, I get this:The culprit seems to be the change added in Craft 3.0.17. In that version of Craft the version of Yii was pinned to
~2.0.16.1
, which only allows upgrades to any Yii versions in the2.0.16.x
range.For completeness, here are my
composer.json
andcomposer.lock
:composer.json
composer.lock