Page MenuHomePhabricator

mwcli mw install & install.php don't help developers if they change composer.lock.json
Open, LowPublic

Description

If I change my composer.local.json

And then run an install it will install with mwcli (or thus install.php) it will break because of missing deps
(despite there being checks in place...)

mw docker mw install --dbname=try11 --dbtype=sqlite

I can then manually do a composer update, which installs a bunch of things

~/git/gerrit/mediawiki/core (master) $ composer update
> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Updating dependencies
Lock file operations: 11 installs, 1 update, 1 removal
  - Removing pimple/pimple (v3.4.0)
  - Downgrading composer/installers (v2.0.1 => v1.12.0)
  - Locking data-values/common (1.0.0)
  - Locking data-values/data-values (3.0.0)
  - Locking data-values/geo (4.3.0)
  - Locking data-values/interfaces (1.0.0)
  - Locking data-values/number (0.11.1)
  - Locking data-values/serialization (1.2.4)
  - Locking data-values/time (1.0.4)
  - Locking diff/diff (3.2.0)
  - Locking onoi/message-reporter (1.4.2)
  - Locking psr/simple-cache (1.0.1)
  - Locking serialization/serialization (4.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 11 installs, 1 update, 1 removal
  - Removing pimple/pimple (v3.4.0)
  - Downgrading composer/installers (v2.0.1 => v1.12.0): Extracting archive
  - Installing data-values/interfaces (1.0.0): Extracting archive
  - Installing data-values/data-values (3.0.0): Extracting archive
  - Installing data-values/geo (4.3.0): Extracting archive
  - Installing data-values/common (1.0.0): Extracting archive
  - Installing data-values/number (0.11.1): Extracting archive
  - Installing serialization/serialization (4.0.0): Extracting archive
  - Installing data-values/serialization (1.2.4): Extracting archive
  - Installing data-values/time (1.0.4): Extracting archive
  - Installing diff/diff (3.2.0): Extracting archive
  - Installing onoi/message-reporter (1.4.2): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
46 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> ComposerVendorHtaccessCreator::onEvent

install will then work