lkwdwrd / wp-muplugin-loader

A drop-in MU Plugin loader for WordPress
59 stars 26 forks source link

Package type changes back to wordpress-plugin during composer update #16

Open benvoynick opened 4 years ago

benvoynick commented 4 years ago

When updating some plugins with composer update, their types listed in composer.lock changed back to just wordpress-plugin instead of wordpress-muplugin.

Here's Composer's log. The deletion and re-installation of the two affected plugins shows up, so at least it's apparent it's happening:

Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 20 updates, 0 removals
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Updating ocramius/package-versions (1.4.0 => 1.5.1): Loading from cache
  - Removing jameelmoses/acf-icomoon (v1.0.4)
Deleting app/mu-plugins/acf-icomoon - deleted
  - Installing jameelmoses/acf-icomoon (v1.0.5): Loading from cache
  - Updating johnpbloch/wordpress-core (5.2.3 => 5.3.2): Downloading (100%)
  - Updating johnpbloch/wordpress (5.2.3 => 5.3.2): Downloading (100%)
  - Updating symfony/polyfill-ctype (v1.12.0 => v1.13.1): Loading from cache
  - Updating twig/twig (v1.42.3 => v1.42.4): Loading from cache
  - Updating timber/timber (1.11.0 => 1.13.0): Loading from cache
  - Removing wpackagist-plugin/advanced-custom-fields-table-field (1.3.6)
Deleting app/mu-plugins/advanced-custom-fields-table-field - deleted
  - Installing wpackagist-plugin/advanced-custom-fields-table-field (1.3.10): Loading from cache
  - Updating wpackagist-plugin/media-library-plus (5.0.8 => 5.1.3): Downloading (100%)
  - Updating wpackagist-plugin/ninja-forms (3.4.20 => 3.4.22): Downloading (100%)
  - Updating wpackagist-plugin/redirection (4.3.3 => 4.5.1): Downloading (100%)
  - Updating wpackagist-plugin/w3-total-cache (0.10.1 => 0.12.0): Downloading (100%)
  - Updating wpackagist-plugin/wordpress-seo (12.1 => 12.7.1): Loading from cache
  - Updating wpackagist-plugin/duplicate-post (3.2.3 => 3.2.4): Loading from cache
  - Updating zendframework/zend-diactoros (2.1.5 => 2.2.1): Loading from cache
  - Updating symfony/options-resolver (v4.3.5 => v4.4.1): Loading from cache
  - Updating ramsey/uuid (3.8.0 => 3.9.2): Loading from cache
  - Updating php-http/client-common (2.0.0 => 2.1.0): Loading from cache
  - Updating sentry/sentry (2.2.2 => 2.2.6): Loading from cache
  - Updating phpoption/phpoption (1.5.0 => 1.7.2): Loading from cache
Writing lock file
Generating autoload files
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class

I was able to work around it by running composer remove and composer require for the plugins.

Composer 1.9.1 on PHP 7.3.

benoitchantre commented 4 years ago

Same result on my side with Composer 1.9.2 on PHP 7.3.