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

Mark psr/http-message >=2.0 supported #310

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

mxr576
Copy link
Contributor

@mxr576 mxr576 commented Sep 20, 2023

Motivation: Make installation on Apigee Edge module easier on Drupal 10+ projects was built with https://packagist.org/packages/drupal/core-recommended#10.1.3 that depends on https://packagist.org/packages/symfony/psr-http-message-bridge#v2.3.1.

What is the problem?

When a new clean Drupal 10+ project is created with drupal/core-recommended Composer picks the highest version of packages, including psr/http-message and it installs 2.0.0. Later when drupal/apigee_edge module gets installed, Composer needs convincing to downgrade to a previous version of psr/http-message because this package needs that. (Luckily the rest of the dependency chain also support 1.x.)

Related:

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #310 (32dddae) into 3.x (ba93b3a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##                3.x     #310   +/-   ##
=========================================
  Coverage     87.61%   87.61%           
  Complexity     1727     1727           
=========================================
  Files           349      349           
  Lines          4617     4617           
=========================================
  Hits           4045     4045           
  Misses          572      572           
Flag Coverage Δ
unittests 87.61% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@divya-intelli
Copy link
Collaborator

Thank you @mxr576 for the PR and the description.

Verified that Drupal 10 uses psr/http-message ^2.0 but due to apigee-client-php still using ^1.0, drupal downgrades psr/http-message to ^1.0 .

For this PR Github action is failing with 2 error https://github.com/apigee/apigee-client-php/actions/runs/6247998648/job/16961690725?pr=310#step:10:666. Once the test are passed we can merge the PR.

@mxr576
Copy link
Contributor Author

mxr576 commented Oct 2, 2023

I'll get back to this PR, hopefully in the next 48 hours 🤞

@mxr576
Copy link
Contributor Author

mxr576 commented Oct 2, 2023

@divya-intelli all green, back to you! :)

Copy link
Collaborator

@divya-intelli divya-intelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@divya-intelli divya-intelli merged commit d8888b8 into apigee:3.x Oct 2, 2023
6 checks passed
@kedarkhaire kedarkhaire added this to the 3.0.2 milestone Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants