You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried it and found that going back is difficult if you are using PEAR.
Upgrading to try is easy:
php composer.phar self-update --2
Updating to version 2.1.5 (2 channel).
Downloading (100%)
Use composer self-update --rollback to return to version 1.10.8
Downgrading failed
php composer.phar self-update --1
[RuntimeException]
The PEAR repository has been removed from Composer 2.0
It also failed using the above instructions shown when I upgraded:
php composer.phar self-update --rollback
[RuntimeException]
The PEAR repository has been removed from Composer 2.0
Intuitively I even expected upgrading might be a problem so I ran cp composer.* ~ before upgrading.
But reverting with mkdir tmp; mv composer.* tmp; cp ~/composer.* . did not work -- somehow the result is I am still running version 2.
End result is: can't upgrade, can't downgrade, some magic is preventing me from using composer at all.
The text was updated successfully, but these errors were encountered:
In the documentation multiple times it is advertised: trying Composer 2 is easy, and you can quickly go back if it doesn't work. (One example is at https://blog.packagist.com/deprecating-composer-1-support/)
I tried it and found that going back is difficult if you are using PEAR.
Upgrading to try is easy:
Downgrading failed
It also failed using the above instructions shown when I upgraded:
Intuitively I even expected upgrading might be a problem so I ran
cp composer.* ~
before upgrading.But reverting with
mkdir tmp; mv composer.* tmp; cp ~/composer.* .
did not work -- somehow the result is I am still running version 2.End result is: can't upgrade, can't downgrade, some magic is preventing me from using composer at all.
The text was updated successfully, but these errors were encountered: