Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
According to core/composer.json the drupal/core package can be used to replace "drupal/core-file-cache" and "drupal/core-php-storage" but this is a lie because no such components exist.
We do have "drupal/core-fileCache" and "drupal/core-phpStorage"
Proposed resolution
Simply fix the replace section to stop the lie and to make drupal/core resolve any "drupal/core-fileCache" and "drupal/core-phpStorage" dependencies. Changing the component names at this point is a breaking change so let's leave that for another issue.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#10 | 2720811-10.patch | 935 bytes | Eric_A |
#3 | 2720811-3.patch | 809 bytes | Eric_A |
Comments
Comment #2
Eric_A CreditAttribution: Eric_A commentedComment #3
Eric_A CreditAttribution: Eric_A commentedOne more mismatch: replace section has "drupal/core-php-storage" but we have "drupal/core-phpStorage".
Comment #4
Eric_A CreditAttribution: Eric_A commentedComment #5
Eric_A CreditAttribution: Eric_A commentedGiven the names used, it's probably a better idea to rename the components than changing the replace section.
Comment #6
Eric_A CreditAttribution: Eric_A commentedComment #7
Eric_A CreditAttribution: Eric_A commentedRenaming the components at this point would be a breaking change. Let's just fix a bug and do #3.
Comment #8
Eric_A CreditAttribution: Eric_A commentedComment #9
Mile23Patch in #3 applies and makes the package names match.
I'd say that we should fix the package names before they're made available in the stubtree split though. Now's the time.
Comment #10
Eric_A CreditAttribution: Eric_A commentedHere's the alternative to #3.
Comment #11
Mile23Thanks. RTBC for #10. Package names now match
replace
fromcore/composer.json
, and also match other hyphenated component names likedrupal/core-dependency-injection
.If we prefer camelCase package names, then the patch in #3 is good.
Comment #12
Fabianx CreditAttribution: Fabianx as a volunteer and at Tag1 Consulting commentedRTBC for #10, as inofficial FileCache subcomponent co-maintainer, I like file-cache much more than fileCache in the composer.json.
Not sure, but this might need a CR though.
Comment #14
Fabianx CreditAttribution: Fabianx as a volunteer and at Tag1 Consulting commentedBack to RTBC, random test fail?
Comment #15
Mile23#10 still applies and does the same stuff. RTBC +1. Silly testbot!
Comment #16
alexpottAnd these are the names already in core/composer.json replace section... nice.
Committed and pushed 30555f01388308b198dfed1903a34e63696a6e47 to 8.2.x and 1252b70 to 8.1.x. Thanks!