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
질문됨 일 년 전94회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠