This pipeline as it is here seems to be broken.
I cloned this repository and tried to run it in an Azure Devops project.
##[warning]An image label with the label Ubuntu 16.04 does not exist.
,##[error]The remote provider was unable to process the request.
Pool: [Azure Pipelines](https://opiniongames.visualstudio.com/31c0df6c-eb00-46d6-b29d-f13c4feb61eb/_settings/agentqueues?poolId=&queueId=155)
Image: Ubuntu 16.04
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/4289af7e-ed5b-45d3-82f8-67d84ab63e1d.sh
update-alternatives: error: alternative /usr/bin/php7.2 for php not registered; not setting
update-alternatives: error: alternative /usr/bin/phar7.2 for phar not registered; not setting
update-alternatives: error: alternative /usr/bin/phpdbg7.2 for phpdbg not registered; not setting
update-alternatives: error: alternative /usr/bin/php-cgi7.2 for php-cgi not registered; not setting
update-alternatives: error: alternative /usr/bin/phar.phar7.2 for phar.phar not registered; not setting
PHP 8.1.11 (cli) (built: Sep 29 2022 22:28:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.11, Copyright (c) Zend Technologies
with Zend OPcache v8.1.11, Copyright (c), by Zend Technologies
with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
Finishing: Use PHP version 7.2
It does not use the configured PHP version 7.2 but the default installed one, which is currently PHP 8.1.11.
This seems to be a very recent change, as ubuntu-latest
has been working for me up until end of last week (17.11.2022).
Through trial and error I found that Ubuntu 18.04
has php7.2, but then the pipeline fails in the composer install
step.
composer install --no-interaction --prefer-dist
========================== Starting Command Output ===========================
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/a89ccc45-1e79-4747-a1c4-2b4cfebb21c0.sh
In Factory.php line 321:
"./composer.json" does not match the expected JSON schema:
- name : Does not match the regex pattern ^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z
0-9](([_.]|-{1,2})?[a-z0-9]+)*$
install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]
##[error]Bash exited with code '1'.