The Needs Review Queue Bot → tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- 🇦🇹Austria tgoeg
The patch in #2907414-31: File module's FilemimeFormatter icon display renders empty image → produces 4 additional files
core/b/core/modules/file/templates/file-mime-icon.html.twig core/b/core/themes/classy/templates/field/file-mime-icon.html.twig core/b/core/themes/stable/templates/field/file-mime-icon.html.twig core/b/core/themes/stable9/templates/field/file-mime-icon.html.twig
that do not differ from the ones at their correct location.
Attached patch should fix it.
This patch should be added to the new separate modules classy, stable and stable9.
I'll open issues there, too. - 🇦🇹Austria tgoeg
Sorry - the patch itself is correct. It's just composer-patches that messes things up in case of newly created files.
Because it tries all values ofpatch
's-p0
till-p4
, it creates new files everywhere. Currently investigating how to prevent that. - 🇨🇭Switzerland berdir Switzerland
"patchLevel": { "drupal/core": "-p2" },
that's how you prevent that.
- 🇦🇹Austria tgoeg
Yeah, thanks, found out in the meantime.
This is https://github.com/cweagans/composer-patches/issues/514
It has the potential to considerably mess up an installation or even create files in locations where they get read/parsed/interpreted.
Using patches is safer than using git repos for fixing up stuff, but this is a pretty hefty disadvantage. I don't remember seeing a warning for this in any doc regarding patching (but I may be wrong). - last update
about 1 year ago Patch Failed to Apply - 🇮🇳India _utsavsharma
Patch for 11.x.
Could not find this file core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php - last update
about 1 year ago 30,436 pass, 1 fail