Skip to content

Support for Composer 2.5 #172

Closed
Closed

Description

@danielbachhuber

We should update wp-cli/package-command so it can be installed where composer/composer 2.5 is a dependency.

From #167 (comment)

Done is:

  • wp-cli/package-command supports composer/composer:~2.5.

Activity

  1. stefanfisk commented on Feb 20, 2023

    @stefanfisk

    @danielbachhuber do you know anything specific that needs fixing, or is it just untested?

  2. danielbachhuber commented on Feb 20, 2023

    @danielbachhuber
    MemberAuthor
  3. stefanfisk commented on Feb 20, 2023

    @stefanfisk

    @danielbachhuber cool, that looks easy enough. Is it OK to go with only ^2.5.4, or is ^1.10.23 still needed as well?

  4. danielbachhuber commented on Feb 20, 2023

    @danielbachhuber
    MemberAuthor

    @stefanfisk We can remove ^1.10.23 as long as there aren't any backwards-compat issues.

  5. stefanfisk commented on Feb 20, 2023

    @stefanfisk

    @danielbachhuber so after making the changes required I found some old related issues where this exact change was abandoned because Composer 2.3 is not compatible with PHP 5.6: #151 #152

    So as long as PHP 5.6 compatibility is required this is not fixable. I'm not familiar with the PHP compatibility policy for WP-CLI, is PHP 5.6 compatiblity still required? And if it is, is there any end date for said compatiblity requirement? 5.6 is absolutely ancient by now :/

  6. danielbachhuber commented on Feb 20, 2023

    @danielbachhuber
    MemberAuthor

    so after making the changes required I found some old related issues where this exact change was abandoned because Composer 2.3 is not compatible with PHP 5.6:

    @stefanfisk Ah, good find.

    So as long as PHP 5.6 compatibility is required this is not fixable. I'm not familiar with the PHP compatibility policy for WP-CLI, is PHP 5.6 compatiblity still required? And if it is, is there any end date for said compatiblity requirement? 5.6 is absolutely ancient by now :/

    We'll need to support support PHP 5.6 at least as long as WordPress core supports 5.6. Fortunately, that should be over soon.

    In 2019, our plan was to support PHP 5.6 for at least a year after core removed support. It seems like we may need to revisit that, though.

  7. stefanfisk commented on Mar 1, 2023

    @stefanfisk

    As a workaround, I switch from wp-cli-bundle to requiring the individual packages except for package-command.

    It's a bit ugly, but would you be OK with having to implementations of ComposerIO, one with types and one without, and then have ComposerIO.php require the correct one based on PHP_MAJOR_VERSION?

  8. danielbachhuber commented on Mar 1, 2023

    @danielbachhuber
    MemberAuthor

    It's a bit ugly, but would you be OK with having to implementations of ComposerIO, one with types and one without, and then have ComposerIO.php require the correct one based on PHP_MAJOR_VERSION?

    @stefanfisk Yes, that would be a perfectly fine approach

  9. added 3 commits that reference this issue on Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions