Elastic Beanstalk: New PHP 8.1 environment - git not availabe during deployment?

0

Running the default

/bin/sh -c composer.phar install --no-ansi --no-interaction

inside a PHP 8.1 environment (64bit Amazon Linux 2/3.5.0) currently results in an error, e.g.

In Git.php line 484:
                                                                               
Failed to clone https://git.drupalcode.org/project/coder.git, git was not found, check that it is installed and in your PATH env.                       
                                                                               
sh: git: command not found 

However, git is installed:


[ec2-user@ip-172-31-4-122 ~]$ which git
/usr/bin/git

There's no problem when performing a deployment inside a PHP 7.4 environment. I followed along the documentation mentioned here, but this only works for PHP based environments < PHP 8.1. The problem only exists when the system detects the composer.json file and automatically performs composer install, so it's possibly a PHP 8.1 environment related bug, s. also this GitHub issue.

Is there any workaround? Otherwise it might work to upgrade an existing PHP 8.0 environment to PHP 8.1 until this is resolved for new PHP 8.1 environments.

tte
preguntada hace un año94 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas