roots / trellis

WordPress LEMP stack with PHP 8.2, Composer, WP-CLI and more
https://roots.io/trellis/
MIT License
2.51k stars 607 forks source link

Disable `install_recommends` for php packages #1355

Closed swalkinshaw closed 2 years ago

swalkinshaw commented 2 years ago

Fixes #1354

php8.1-cli is being installed due to another package recommending it. Right now this breaks WordPress installation due to WP-CLI being incompatible.

However, 8.1 shouldn't be installed anyway when the php_version is set to 8.0. This fixes the root cause by setting install_recommends: no which disables the feature in apt.

More background: https://github.com/oerdnj/deb.sury.org/wiki/Frequently-Asked-Questions#why-is-phpdefaultversion-cli-always-installed and https://github.com/oerdnj/deb.sury.org/issues/1711