I does not seem possible to set a newer php version and use drush for drupal7 and 8 recipes.
I have attached my yml file lando.yml.txt
Steps to reproduce:
- lando init
- choose name etc, and choose drupal7 (or drupal8) as the recipe
- copy drupal files and import database
- start up the app
- type lando drush -> gives status report
- add the following to lando.yml
services:
appserver:
type: php:8.1
- lando rebuild -y
- run lando drush again
ERROR: OCI runtime exec failed: exec failed: container_linux.go:370: starting container process caused: exec: "drush": executable file not found in $PATH: unknown