Closed gapple closed 3 years ago
Sadly there is no official/obvious replacement for the self-update command because padraic/phar-updater was abandoned without a replacement.
We either have to "inline" the code or get rid of the self-update command and recommend other solutions for updating a phar file like https://phar.io/
I added it to my Dockerfile but unfortunately, it doesn't work.
wget -O /usr/local/bin/drush https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar \
&& chmod +x /usr/local/bin/drush
The following commands still work. Hope it can be work for you.
./vendor/bin/drush
If you still want to use the drush command, you can add it to the alias as a temporary solution. We still expect the matter to be fully resolved.
echo "alias drush='./vendor/bin/drush'" >> ~/.bashrc
source ~/.bashrc
The
padraic/phar-updater
package and one of its dependencies are abandoned. The dependency is not marked as compatible with PHP 8, preventing drush-launcher from running: