-
Notifications
You must be signed in to change notification settings - Fork 1k
Add ComposerIO implementation with types #5757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I don't understand what is generating https://github.com/wp-cli/wp-cli/pull/5757/files#annotation_10225078703. |
|
This change requires I wasn't at all sure about how you handle dep versions for this project. The only code that uses this class in is the |
Hm, I'm not sure either. @schlessera Any ideas? |
Can you try adding the branch for wp-cli/package-command#173 as a dependency and we can see if that gets tests passing? |
|
@danielbachhuber The tests pass when I run them locally in |
@stefanfisk That's what I was thinking, but now it seems the tests fail in some other spectacular way.
Should/could this be |
|
@danielbachhuber I think that was caused by how I was defining the repository in |
|
@stefanfisk Huh! The code quality tests are passing now! Some of the functional tests are passing, and others are failing. |
|
@schlessera might have helpful feedback when he's able to chime in. |
|
Is there any way that I can run the test matrix locally? When I have the time I’ll try checking the composer version instead of the PHP version. |
|
@stefanfisk Simplest way is to create PR to you fork of this repository and then there is no first time contributor limit. |
|
Alright, I think I understand better now, but something's still off. The Dependabot branch breaks on PHP < 7.4, because composer v1 is not compatible with the test suite ( The only failing functional tests is now the one below, and I don't see how it could be related to this PR. Something is however wrong with the unit tests for PHP 5.6-7.1, as they fail to install composer https://github.com/stefanfisk/wp-cli/actions/runs/4706473897/jobs/8347986152#step:4:17. |
|
@stefanfisk Are you able to attend Hack Day this coming Friday, November 10th? I think there will be some folks around in the Slack channel who can help you sort this out. |
The latest version of `composer/composer` uses type declarations, which is not backwards compatible with PHP 5.6. See wp-cli/package-command#172
|
@stefanfisk I've been looking more closely at this to finally get this fixed. As it turns out, the Also, these manual includes really mess with static analysis, linters and autoloaders. The approach for having a clean compat setup should mirror what we already have in https://github.com/wp-cli/wp-cli/tree/main/php/WP_CLI/Compat. I'll create a fresh PR in the Thanks for all of your work already on this, and sorry I didn't get to look into it earlier. |
The latest version of
composer/composeruses type declarations, which is not backwards compatible with PHP 5.6.See wp-cli/package-command#172