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
demandé il y a un an94 vues
Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions