Closed (duplicate)
Project:
Drupal core
Version:
8.9.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2019 at 00:15 UTC
Updated:
21 Jul 2021 at 07:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
martin107 commentedAfter a recent commit
Issue #3032693 by jibran, alexpott, chr.fritsch: Update core PHP dependencies before 8.7.0
I think we should set 2.6 as the target,
composer outdated -D
doctrine/annotations v1.2.7 v1.6.0 Docblock Annotations Parser
doctrine/common v2.6.2 v2.10.0 Common Library for Doctrine projects
masterminds/html5 2.3.0 2.6.0 An HTML5 parser and serializer.
paragonie/random_compat v2.0.18 v9.99.99 PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
Comment #3
martin107 commentedI just want to see testbots response to just updating the core/composer.json
and then running composer install
Comment #4
martin107 commentedComment #5
berdirwe should only update the lock file, because this is going to conflict with the amp module and break all sites using that.
you should also only run compoesr update masterminds/html5, and not update everything.
Comment #7
martin107 commentedthank you.
so starting from a fresh checkout the result of
Comment #8
martin107 commentedPlease excuse my paranoia. -- did that actually run the test-suites with the updated packages ?
Here is the line that gives me confidence to say YES.
in full context this.
https://dispatcher.drupalci.org/job/drupal_patches/90012/consoleText
Comment #9
martin107 commentedQuestion : Where in core do we use Masterminds/html5 ?
Answer: StyleTestBase::storePreview(), an method in a abstract class.
The classes that extend StyleTestBase, StyleUnformattedTest and StyleMappingTest both use it,
So being constructive .. to best way to fix it is to decouple the amp's hidden dependency on core definition of the package.. and move core's dependency down into the 'require-dev' section of composer.json
so here is my todo list:
a) So this change should be marked as Drupal9
b) The amp module can be corrected today?
c) A change record produced to signal to all other contrib modules that the mastermind/html5 package is moving to require-dev
@Bedir - Do I have that correct?
Comment #10
martin107 commentedjust looking into the question of breaking the amp module(#5)
I have not used amp , so I am not the person to comment, but
when I pull in the amp dev branch with
composer require 'drupal/amp:2.x-dev'
I don't see a dependency on masterminds/html5 - hidden or otherwise.
Comment #11
berdir> I don't see a dependency on masterminds/html5 - hidden or otherwise.
It's an indirect dependency, drupal/amp depends on lullabot/amp and that has
"masterminds/html5": "~2.3.0",And the problem with moving it to require-dev wouldn't really solve it as anyone who installs with dev dependencies would still have a conflict. But still interesting that we only need it in tests..
Comment #12
wim leers#9: The intent was always to use
masterminds/html5instead of PHP's native\DOMDocument. Because\Drupal\Component\Utility\Html::load()today is NOT HTML5-compliant. See #1333730: [Meta] PHP DOM (libxml2) misinterprets HTML5.EDIT: and yes, that means it still has not happened :(
Comment #13
martin107 commentedthanks for providing the wider perspective.... it is alway useful.
Comment #15
berdirSee #3088369-14: Update Drupal 9 to Symfony 4.4-dev, the patch now updates masterminds/html5 in 9.0.x to be able to update all symfony components to 4.4.
Not sure if we should just close this issue as a duplicate or keep it for 8.9.
Comment #17
alexpottThis is introducing an extension dependency we've not had before.
Comment #18
alexpottAH but we have symfony's polyfills to the rescue - we already depend on symfony/polyfill-ctype
Comment #19
longwavePresumably too late for this to happen in 8.9.x now, I think this should be closed as won't fix.
Comment #20
berdirAgreed, lets just close it, if someone disagrees strongly they can reopen.
The amp 3.x module has been updated now to be compatible with more recent versions, so sites can update if they want to. Well, as long as they don't use drupal/core-recommended, that is.
Comment #21
andyposthttps://github.com/Masterminds/html5-php/releases/tag/2.7.5 is out with support for PHP 8.1
Comment #22
andypostComment #23
andypostComment #24
alexpott@andypost this is a duplicate of #3224000: Update dependencies for Drupal 9.3