Closed (fixed)
Project:
Accelerated Mobile Pages (AMP)
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2020 at 15:12 UTC
Updated:
10 Jul 2020 at 18:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirIt doesn't make it hard, it makes it impossible to use with Drupal 9 :)
https://www.drupal.org/pift-ci-job/1737740
That version isn't compatible with symfony 4.
Comment #3
karens commentedMoved to this PR, https://github.com/Lullabot/amp-library/pull/280, looks like it's working with all versions of PHP, now to see if it works when I use it on Drupal.
Comment #4
karens commentedFingers crossed!
Comment #5
karens commentedNow I think we can get rid of the extra cruft in require-dev that I had to add for tests to pass.
Comment #6
karens commentedMy suspicion is that the require failure for D9 is due to the fact that the test starts with the dev version of the code, which is currently uninstallable, and then fails. So I think that failure is to be expected.
It's possible this upgrade will be tricky for end users because they have a current implementation that is locked on the wrong version of masterminds, so composer may refuse to change it.
I don't think there's any alternative, this patch is the way forward.
Comment #8
karens commentedNow I need to figure out a release strategy. This will break D8 sites but work on D9. If the patch gets into 8.9, it this will work on 8.9.
Comment #10
karens commentedReverting because it screws up tests. I guess I need a new branch so I can run different tests on each branch. And to make it more clear which version is required.
Comment #11
berdirI think that was progress, it actually did run the tests now. The test fails might have been the MySQL version, make sure you use MySQL 5.7+.
Comment #12
berdirAh, does lullabot/amp 2 require a version of of masterminds7html5 that requires symfony4?
Tricky. Maybe you can require ^1.0 || ^2.0, then it will install a working version on D8 and D9.
Comment #13
karens commentedWill this work? I have no idea.
Comment #15
berdirhttps://www.drupal.org/pift-ci-job/1738983
Woot! And 8.9 passed too.
THis is fixed then, I think?
Comment #16
karens commentedI went ahead and merged this and both D8 and D9 tests pass. So hopefully this is working!