-
Notifications
You must be signed in to change notification settings - Fork 1
Draft: Add support for Drupal recipes #36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: 11.x
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you need a composer normalize
.
With this version I get the same error as the bot complains about when doing composer normalize --dry-run
.
After composer normalize
I get "./composer.json is already normalized."
Unclear to me if it's just some whitespace issue or some "hidden" character.
Edit:
It's of course the order which for some reason I thoiught you had changed...
Thanks, there you go :) The main question is probably if we need the installer-paths. I'm wondering if it requires subfolders like |
I think I really don't have any opinion here - just think I copied some doc sections from a module and the module/theme structure partly stuck around. (I see in my recipes, that I mix the variants in the READMEs - Should clean that up to whatever we decide here.) |
Yes, that would be good. I currently cannot see a need of Then this PR would be more about adding the gitignore, because the rest of the Composer recipe handling works out of the box. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
And I think I lean in favor of adding this to .gitignore
.
It's the result of the recipe run we care about and would commit - keeping the recipe itself around serves no real purpose does it?
No, it should be gitignored in my opinion. It's just that gitignoring /recipes takes away the possibility to have custom recipes, but on the other hand I do not see a use-case for it and even if so, you can just run it once on your local and that would be enough. |
We might want to wait for https://www.drupal.org/project/drupal/issues/3355485. Core committers want to prioritize it. |
The PR adds support for Drupal recipes. I went for the minimal configuration that is placing recipes into
/recipes
, not into a subfolder like/recipes/contrib
. This is up for discussion and would require the following in Composer.extra
Explanation for the following:
Only works if https://www.drupal.org/project/distributions_recipes/issues/3355485 is resolved or https://github.com/woredeyonas/Drupal-Recipe-Unpack is used.
So if we vote against both the PR is obsolete.