-
Notifications
You must be signed in to change notification settings - Fork 178
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
Composer 2 + AMP Plugin 2.1 / AMP PHP Toolbox #5344
Conversation
Size Change: 0 B Total Size: 1.44 MB ℹ️ View Unchanged
|
This didnt update me to composer 2.
|
I needed to run
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was running 1.10.17 and didnt upgrade.
What do you mean with this? The PR just updates the plugin to be Composer 2 compatible. |
Update on this: the AMP plugin will be releasing v2.0.7 today, which is a hotfix for ampproject/amp-wp#5609. Due to an unnoticed incompatibility with Composer v2, we're downgrading back to v1 until we have a solution in place to fix the reported issue. |
@pierlon What is the status of Composer 2 in 2.0.8? |
@spacedmonkey Still using Composer 1 on the 2.0 branch. Upgrading to Composer v2 will be revisited for 2.1+. |
@westonruter @pierlon Is there any rough ETA on the AMP plugin v2.1 release? We're considering just using |
@swissspidy We are planning to release v2.1 to coincide with WordPress 5.7. So roughly a month from now. If the prerelease state works for you, then I don't see any problem with that. Note that AMP Toolbox PHP should have a new stable release prior to the AMP plugin's v2.1. So you may only need to use @pierlon Is there any dependency on ampproject/amp-wp#5745? |
Yes, it would be of high priority now. At the moment if our patched version of the |
Codecov Report
@@ Coverage Diff @@
## main #5344 +/- ##
=======================================
Coverage 83.12% 83.12%
=======================================
Files 1106 1106
Lines 19758 19758
=======================================
Hits 16424 16424
Misses 3334 3334
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worked well in PHP 7.3 and PHP 7.4 I tested locally. However, got error when installing on PHP 8.0. This is an issue in main, so I am going to make another issue to fix this elsewhere.
I just updated PHP-Scoper here which should fix this. Could you try again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works in PHP 8.0.
Summary
Relevant Technical Choices
Note: This supersedes #5284
Since AMP plugin 2.1 hasn't been released yet, this loads the plugin from
dev-develop
instead.To-do
User-facing changes
N/A
Testing Instructions
N/A
Fixes #5083
Fixes #4897