Page MenuHomePhabricator

CheckComposerLockUpToDate fails when upgrading from MW 1.37.2 to 1.38.0
Closed, ResolvedPublicBUG REPORT

Description

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

Event Timeline

Change 802884 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/vendor@REL1_38] Installing justinrainbow/json-schema (5.2.11)

https://gerrit.wikimedia.org/r/802884

Change 802884 merged by Reedy:

[mediawiki/vendor@REL1_38] Installing justinrainbow/json-schema (5.2.11)

https://gerrit.wikimedia.org/r/802884

I'll get a 1.38.1 release out tomorrow.

Reedy claimed this task.