Closed (fixed)
Project:
Dropsolid Rocketship Core
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2019 at 12:15 UTC
Updated:
24 Jul 2019 at 09:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
grayle commentedThe class it extends exists only in a patch, currently the patches are only set in the parent distribution (https://www.drupal.org/project/dropsolid_rocketship).
iirc patches can, however, also be set in lower composer files so if you want to make a patch that adds the composer.json patches part from Rocketship into this module, go for it.
Comment #3
grayle commentedAlright, moved the two required patches from the distribution to this module. Beta10 should have all it needs.
Comment #4
valthebaldThat was fast :)
Comment #5
valthebaldUnfortunately, composer-patches plugin doesn't work that way - at least in default configuration.
It only takes patches that are specified in the top level composer.json (there are multiple reasons for this behavior), so having the patch in distribution project like dropsolid_rocketship makes total sense.
I have performed `composer require drupal/rocketship_core` with drupal-composer template (which includes cweagans/composer-patches) just to be sure, and ended up with no required base class.
Also, not all projects use composer flow (or composer-patches plugin).
I suggest to (re)-add the patch to the distribution, and add a comment to RSParagraphsAsymmetricWidget
Comment #6
valthebaldof course, using the right base class
Comment #7
grayle commentedAll you need is this in your top-level to make dependency patching work:
"extra": {
"enable-patching": true
}
Maybe you were thinking of defining repositories in dependencies. Although it indeed doesn't seem 100%, sometimes it needs two update calls. I haven't looked into the logic of composer-patches, but it looks like it reads stale local composer files... sometimes.
Extra information is always good though. But it also requires a core patch, so best to include that information as well. I'll update some more READMEs this week as well to include more composer info flow, especially regarding patches.
Comment #8
valthebaldUpdated issue summary
Comment #10
grayle commented