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

Loosen Guzzlehttp requirement to allow v6 #170

Closed
MagicLegend opened this issue Apr 11, 2022 · 27 comments
Closed

Loosen Guzzlehttp requirement to allow v6 #170

MagicLegend opened this issue Apr 11, 2022 · 27 comments

Comments

@MagicLegend
Copy link

Overview/summary

I'd like to see the requirement for guzzle/guzzlehttp loosened to also allow v6, instead of ^7.0. I have forked the project, and downgraded the package. All tests still succeed, so I'm assuming v6 is fully compatible with this package as well.

I also have loosened doctrine/inflector to allow v1, which also doesn't break the tests. This is a deeper dependency to two Magento packages as well.

Motivation

Magento v2.4.3 uses Guzzlehttp v6, and upgrading Magento is simply not an option. In our case:

$ composer2 why guzzlehttp/guzzle
magento/ece-tools                                  2002.1.10   requires  guzzlehttp/guzzle (^6.3||^7.3)
magento/framework                                  103.0.3-p1  requires  guzzlehttp/guzzle (^6.3.3)
magento/module-catalog-sync-admin                  1.0.4       requires  guzzlehttp/guzzle (~6.0)
magento/module-product-recommendations-admin       3.0.4       requires  guzzlehttp/guzzle (~6.0)
magento/module-product-recommendations-sync-admin  1.0.1       requires  guzzlehttp/guzzle (~6.0)
magento/product-community-edition                  2.4.3-p1    requires  guzzlehttp/guzzle (^6.3.3)                                                                                                                                                        
magento/product-enterprise-edition                 2.4.3-p1    requires  guzzlehttp/guzzle (^6.3.3)        
magento/product-recommendations-admin              3.0.5       requires  guzzlehttp/guzzle (~6.0)
magento/services-connector                         1.2.0       requires  guzzlehttp/guzzle (6.*)
$ composer2 why doctrine/inflector
illuminate/support  v5.8.36  requires  doctrine/inflector (^1.1)
$ composer2 why illuminate/support
illuminate/config  v5.8.36  requires  illuminate/support (5.8.*)  
$ composer2 why illuminate/config
magento/ece-tools             2002.1.10  requires  illuminate/config (^5.5||^8.77)
magento/magento-cloud-docker  1.3.2      requires  illuminate/config (^5.5||^8.77)

Would be great if it'd be allowed to use both packages with a lower version for better compatability.

@MagicLegend
Copy link
Author

For those in the future; I have created a fork that supports the lower versions of both inflector and Guzzle. The changes should be compatible with Guzzle v7 as well (although at the time untested since I don't need them). Perhaps one day this compatibility can be introduced in the main package as well?

@github-actions
Copy link

This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Sep 28, 2022
@MagicLegend
Copy link
Author

Still waiting on Shopify...

@github-actions github-actions bot removed the Stale label Sep 29, 2022
@github-actions
Copy link

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Nov 29, 2022
@MagicLegend
Copy link
Author

Still waiting on Shopify...

@github-actions github-actions bot removed the Stale label Nov 30, 2022
@github-actions
Copy link

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Jan 30, 2023
@MagicLegend
Copy link
Author

Still waiting on Shopify...

@rafaelstz
Copy link

Hey @MagicLegend, you were referring to Magento in your issue description, is it placed in the right place?

@MagicLegend
Copy link
Author

MagicLegend commented Jan 30, 2023

Hey @rafaelstz, yes I'm in the right place. I'm referring to the guzzlehttp requirement that this package has:

"guzzlehttp/guzzle": "^7.0",

Since it does not allow v6, it restricts compatability with Magento versions <2.4.4, as per the change in guzzlehttp requirement between v2.4.3 and v2.4.4: magento/magento2@3083779. I'm referring to Magento to show that this package is not compatible with <2.4.4 for this reason. Reading it again I do understand where you're coming from though, I hope I've cleared it up.

Also see my fork of this package in which I fixed a bunch of issues, including this one: https://github.com/MagicLegend/shopify-php-api

@github-actions github-actions bot removed the Stale label Jan 31, 2023
@github-actions
Copy link

github-actions bot commented Apr 2, 2023

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Apr 2, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Apr 4, 2023
@github-actions
Copy link

github-actions bot commented Jun 3, 2023

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Jun 3, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Jun 6, 2023
@github-actions
Copy link

github-actions bot commented Aug 6, 2023

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Aug 6, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Aug 8, 2023
@github-actions
Copy link

github-actions bot commented Oct 8, 2023

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Oct 8, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Oct 10, 2023
Copy link

github-actions bot commented Dec 9, 2023

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Dec 9, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Dec 11, 2023
Copy link

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Feb 10, 2024
@ZacharyDuBois
Copy link

Still waiting for Shopify to reply...

@github-actions github-actions bot removed the Stale label Feb 11, 2024
Copy link

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Apr 12, 2024
@ZacharyDuBois
Copy link

Issue wouldn't be stale if Shopify would answer

@MagicLegend
Copy link
Author

Happy 2 years without a reply from Shopify! 🎉

@github-actions github-actions bot removed the Stale label Apr 13, 2024
@ZacharyDuBois
Copy link

Giphy

@fulldecent
Copy link

Recommending to close this issue.

Guzzle 6.x is now end-of-life. Source: https://github.com/guzzle/guzzle?tab=readme-ov-file#version-guidance

This Shopify repo is currently supported at the "please send PRs" level. Source: #322 (comment)

Therefore, I think it is reasonable to understand the project's scope as not including depending on unsupported dependencies.

@MagicLegend
Copy link
Author

Hi @fulldecent ,

Well, when I opened the ticket Magento 2.4.3 was already almost EOL. But just because something is EOL doesn't mean nobody uses it anymore :-)

This Shopify repo is currently supported at the "please send PRs" level. Source: #322 (comment)

My fork has been in production use since I opened this ticket, but I assume it will need some more cleanup before Shopify would accept it. But without any input from their side, I don't know what they'd exactly want changed.

Therefore, I think it is reasonable to understand the project's scope as not including depending on unsupported dependencies.

Well if you read my changes you'll see that all I did was allow ^6.3 together with ^7, since this resolved the conflict I had. So no full downgrade happened, and if your projects dependencies allow it it will prefer version 7.


Anyhow, the only reason we're here is because Shopify hasn't replied in over 2 years :-) I guess it took them that long to admit that they practically abandoned the package, as per the comment you quoted from #322 . Given that the changes in my fork are there for anyone who lands on this issue because they had the same problem I did, I'm fine with closing this issue.

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

No branches or pull requests

4 participants