UPDATE: php-curl extension was causing Segmentation Fault.
I am running docker pipelines with alpine 3.15 and PHP 7.0 and 7.1 on an ARM64.
I install composer using
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Since yesterday, 5th of April, all pipelines fail with the following error:
PHP Fatal error: Declaration of Composer\IO\BaseIO::hasAuthentication($repositoryName) must be compatible with Composer\IO\IOInterface::hasAuthentication(string $repositoryName) in phar:///usr/bin/composer/src/Composer/IO/BaseIO.php on line 20
I tried using older versions of composer, but on all them I get:
Segmentation fault
This was working fine for the past 6 months. So something changed recently on the composer builds. I also tried running on Intel and to install the composer the classical way, however, I also get the same errors.