Problem/Motivation
In naderman & RobLoach's presentation at DrupalCon Munich, it was recommended that Drupal core become a dependency of Drupal. This would allow end-users to modify Drupal's composer.json file, while at the same time maintaining Drupal core's own composer.json file that would not be touched.
Proposed resolution
Permanently split Drupal and Drupal core into two separate, distinct repositories/projects.
This setup is similar to the architecture imposed by Symfony and Symfony Standard as well as Laravel Framework and Laravel.
In the same way we'd have "Drupal" and "Drupal Core".
Remaining tasks
Packaging Script should maintain a complete package of Drupal that combines both repositories. This can be easily accomplished by executing composer install
from the Drupal repository before the package is built.
API changes
Every 9.0.x patch will need to be re-rolled against the appropriate repository.
Comments
Comment #1
Mile23Comment #2
davidwbarratt CreditAttribution: davidwbarratt as a volunteer and commentedFYI:
I mentioned this issue in my session at DrupalCon Los Angeles: Using Subtree Splits to spread Drupal into everything
Comment #3
timmillwoodThis makes sense, maybe it could go in before 9.x?
Comment #4
davidwbarratt CreditAttribution: davidwbarratt at Golf Channel commented#3,
I mean it's whenever we want to re-roll / re-write every patch in Drupal core out there... I think that would take a while, but I guess it could go out before 9.x, but not before 8.0.0. Since the packaging of Drupal will remain the same, I don't think it's immensely disruptive to Drupal users, just Drupal contributors.
Comment #5
catchDuplicate of #2352091: Create (and maintain) a subtree split of Drupal core.
Comment #6
davidwbarratt CreditAttribution: davidwbarratt as a volunteer commentedNot a duplicate, I created both issues and they cover separate topics. This one covers having two completely unique repositories (i.e. not a subtree split)
Comment #7
davidwbarratt CreditAttribution: davidwbarratt as a volunteer commentedComment #8
catchComment #13
alisonHi! I'm reading up on a lot of composer-related d.o discussions. @davidwbarratt and @timmillwood is this still something you're thinking about / wanting to do (if you had time har har har), or not really anymore? Thanks!
Comment #16
MixologicWe now have subtree splits of drupal, giving us separate repos for core/ and components, and I think we definitely want to continue to follow symfony's lead with the monorepo/manyrepos concept, especially because we dont want to develop multiple policies and manage multiple 'project repos'.
Im going to wontfix this, and if anybody disagrees, they can protest and reopen.