Skip to content
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

1.1.2 lost composer v2 support #642

Closed
dereuromark opened this issue Aug 18, 2020 · 9 comments
Closed

1.1.2 lost composer v2 support #642

dereuromark opened this issue Aug 18, 2020 · 9 comments
Assignees
Labels
Milestone

Comments

@dereuromark
Copy link

We are already using composer v2 in experimental state
But now, it seems 1.1.2 patch made composer v2 not usable again

Can we please revert this?

https://github.com/predis/predis/blob/v1.1/composer.json#L35
Why was this tool added? This seems to cause the blocking.
If we removed that in some way, composer v2 would work again

@dereuromark
Copy link
Author

I see it was already being moved to require-dev 6dd55d7#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780
So if this was to be released as patch it would directly fix the issue.

@tillkruss
Copy link
Member

@dereuromark: Does installing v1.1.x-dev work fine with Composer 2?

@tillkruss
Copy link
Member

Related #632.

@tillkruss tillkruss self-assigned this Aug 18, 2020
@tillkruss tillkruss added this to the v1.1.3 milestone Aug 18, 2020
@tillkruss
Copy link
Member

tillkruss commented Aug 18, 2020

Looks like they are back porting the Composer v2 support: cweagans/composer-patches#321

@dereuromark
Copy link
Author

Still:
If you release now as I recommended, then the problem would already go away now as that dependency should never have been a require one to begin with.

@nrk
Copy link
Contributor

nrk commented Aug 18, 2020

By the way, I see a bunch of patch files commited in v1.1 (namely tests/phpunit_mock_objects.patch, tests/phpunit_php7.patch and tests/phpunit_php8.patch ). Shouldn't they be added to .gitignore and removed from the repository?

@tillkruss
Copy link
Member

If the patches aren't included, the dev install fails. Since we don't include the tests folder, it might make sense to move the patches into a separate folder.

That's one of the reasons why I didn't want to keep patching PHPUnit in 2.x 👍🏻

@nrk
Copy link
Contributor

nrk commented Aug 18, 2020

If the patches aren't included, the dev install fails. Since we don't include the tests folder, it might make sense to move the patches into a separate folder.

Alright I see, I was just asking because I still haven't had a look at what this thing does under the hood 😃

That's one of the reasons why I didn't want to keep patching PHPUnit in 2.x 👍🏻

Indeed. In v1.1 we are just stuck with ancient stuff, but v2.0 is a whole different matter 🚀

@tillkruss
Copy link
Member

Pushed v1.1.3 live.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants