Steps to replicate the issue (include links if applicable):
- In a Dockerfile, use "FROM mediawiki:1.43.6"
- Install from the composer:latest
- Install semantic mediawiki and some extensions.
- The docker-compose build step fails with 2 errors
See this GitHub action log with the build failure https://github.com/Zelnox/giant-bomb-wiki/actions/runs/21611206859/job/62280142474
What happens?:
Extracted from the log linked above:
#19 14.44 Problem 1
#19 14.44 - Root composer.json requires phpunit/phpunit 9.6.19 (exact version match: 9.6.19 or 9.6.19.0), found phpunit/phpunit[9.6.19] but these were not loaded, because they are affected by security advisories ("PKSA-z3gr-8qht-p93v"). Go to https://packagist.org/security-advisories/ to find advisory details. To ignore the advisories, add them to the audit "ignore" config. To turn the feature off entirely, you can set "block-insecure" to false in your "audit" config.
#19 14.44 Problem 2
#19 14.44 - Root composer.json requires johnkary/phpunit-speedtrap ^4.0 -> satisfiable by johnkary/phpunit-speedtrap[v4.0.0, v4.0.1].
#19 14.44 - johnkary/phpunit-speedtrap[v4.0.0, ..., v4.0.1] require phpunit/phpunit ^7.0 || ^8.0 || ^9.0 -> found phpunit/phpunit[7.0.0, ..., 7.5.20, 8.0.0, ..., 8.5.52, 9.0.0, ..., 9.6.34] but these were not loaded, because they are affected by security advisories ("PKSA-z3gr-8qht-p93v"). Go to https://packagist.org/security-advisories/ to find advisory details. To ignore the advisories, add them to the audit "ignore" config. To turn the feature off entirely, you can set "block-insecure" to false in your "audit" config.
#19 14.44
#19 14.44 Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
#19 ERROR: process "/bin/sh -c cd /var/www/html && COMPOSER=composer.local.json php /usr/local/bin/composer require --no-update mediawiki/semantic-media-wiki && php /usr/local/bin/composer require --no-update mediawiki/semantic-extra-special-properties && php /usr/local/bin/composer require --no-update mediawiki/semantic-result-formats && php /usr/local/bin/composer require --no-update mediawiki/semantic-scribunto dev-master && php /usr/local/bin/composer require --no-update \"wikimedia/css-sanitizer:^5.5.0\" && docker-php-ext-configure zip && docker-php-ext-install zip && cd /var/www/html/extensions/ && git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageForms.git && git clone -b 'REL1_43' --single-branch --depth 1 https://gerrit.wikimedia.org/r/mediawiki/extensions/DisplayTitle && git clone -b 'REL1_43' --single-branch --depth 1 https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles && git clone -b 'REL1_43' --single-branch --depth 1 https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups && wget https://github.com/octfx/mediawiki-extensions-TemplateStylesExtender/archive/refs/tags/v2.0.0.zip && unzip v2.0.0.zip && rm v2.0.0.zip && mv mediawiki-extensions-TemplateStylesExtender-2.0.0 TemplateStylesExtender && cd /var/www/html/ && composer update --no-dev" did not complete successfully: exit code: 2What should have happened instead?:
The image should build without errors.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
MediaWiki 1.43.6
PHP 8.3.30 (apache2handler)
ICU 76.1
MariaDB 11.8.5-MariaDB-ubu2404
Lua 5.1.5
Other information (browser name/version, screenshots, etc.):
- I fixed this issue locally in this PR https://github.com/Giant-Bomb-Dot-Com/giant-bomb-wiki/pull/132/changes. The composer.json version for phpunit is hard set to 9.6.19 and I have to use sed to change it to "^ 9.6.19" such that the update will change it from the faulty version. You will see the GitHub action that builds the image succeeds (https://github.com/Giant-Bomb-Dot-Com/giant-bomb-wiki/actions/runs/21614838155/job/62291211046?pr=132).
- The security advisory https://issues.apache.org/jira/browse/IGNITE-27681 for PKSA-z3gr-8qht-p93v
- Separately, I have tested using composer:2.2 and that also builds successfully (without modifying of the composer.json file).