I have encountered this problem on two MediaWiki installations on separate machines when upgrading from 1.37.2 to 1.38.0 using the official tarball: https://releases.wikimedia.org/mediawiki/1.38/mediawiki-1.38.0.tar.gz
Running php w/maintenance/update.php resulted in the following error:
MediaWiki 1.38.0 Updater justinrainbow/json-schema: not installed, 5.2.11 required. Error: your composer.lock file is not up to date. Run "composer update --no-dev" to install newer dependencies
This error should not occur, since justinrainbow/json-schema is included in MediaWiki and is also present in my file system. The update script terminates after this error without performing the necessary update operations.
The error message comes from maintenance/checkComposerLockUpToDate.php.
As a workaround, I have passed --skip-external-dependencies to w/maintenance/update.php. This allowed the update process to continue.
Information about my system:
- Debian Linux 11.3
- PHP 7.4.28
- SQLite 3.34.1