Here’s what I did in the end:
- Update Composer locally to version 2+
- Remove the lines from /group_vars/all/main.yml:
composer_global_packages:
{ name: hirak/prestissimo }
- SSH into your vagrant box and update Composer to version 2:
composer self-update or:
composer self-update --2
- Remove your
site/composer.lockfile. - Make sure you update the following dependencies in your
site/composer.json:
"composer/installers": "^1.9",
"vlucas/phpdotenv": "^5.2"
and make sure you’ve got at least Bedrock version 1.14.3 or higher.
-
Run
rm -rf vendor && composer installfrom the site dir and push your git commits. -
Check your theme’s
composer.jsonand update:
"composer/installers": "^1.9"
-
SSH into your remote server and check for the current composer version:
composer --version.
If neccessary update to version 2+:
composer self-update or:
composer self-update --2
- Deploy your changes to the remote server.
This worked for me for at least 8 running projects!