./build versions doesn't work after Composer v2 update

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
913
Location
🇳🇱
Thanks for adding Composer 2 so fast to CustomBuild, but ./build versions now hangs and doesn't continue after the install of Composer v2. It seems CustomBuild can't correctly verify the Composer version because it stops right after the Exim version check and before the Composer v2 version check.
 
I was unable to reproduce it. May you PM me the output of:
Code:
bash -x /usr/local/directadmin/custombuild/build versions

Thank you!
 
Sure, but that's hundreds of lines and I need to check for personal information. But I think the relevant section;

Code:
+ '[' -x /usr/local/bin/composer ']'
++ COMPOSER_HOME=/root
++ /usr/local/bin/composer -V
++ awk '{print $3}'
^C

And I think the problem is that with Composer v2 it no longer warns you to not run Composer as root, but it is now an interactive question;

/usr/local/bin/composer -V
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? n

And CustomBuild / ./build versions waits for that user input.
 
Back
Top