[wp-trac] [WordPress Trac] #51624: Composer 2.0 Support

WordPress Trac noreply at wordpress.org
Sun Oct 25 00:45:08 UTC 2020


#51624: Composer 2.0 Support
-------------------------------+-------------------------------
 Reporter:  TimothyBlynJacobs  |      Owner:  TimothyBlynJacobs
     Type:  defect (bug)       |     Status:  assigned
 Priority:  normal             |  Milestone:  5.6
Component:  Build/Test Tools   |    Version:  trunk
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-------------------------------
 GitHub actions is now using Composer 2.0 which was
 [https://blog.packagist.com/composer-2-0-is-now-available/ released
 earlier today]. It looks like that is causing test failures due to a
 dependency of ours that isn't compatible.

 {{{
 Error: Your lock file does not contain a compatible set of packages.
 Please run composer update.

   Problem 1
     - dealerdirect/phpcodesniffer-composer-installer is locked to version
 v0.6.2 and an update of this package was not requested.
     - dealerdirect/phpcodesniffer-composer-installer v0.6.2 requires
 composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does
 not match the constraint.

 You are using Composer 2, which some of your plugins seem to be
 incompatible with. Make sure you update your plugins or report a plugin-
 issue to ask them to support Composer 2.
 }}}

 [https://wordpress.slack.com/archives/C02RQBWTW/p1603552988204000
 Discussing in Slack], @jrf points out it looks like this can be fixed by
 updating our dependency to allow a newer version which does support
 Composer 2.0.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51624>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list