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
Follow-up of #2982684: Add a composer scaffolding plugin to core.
The example in composer/Plugin/Scaffold/README.md contains minor bugs.
Proposed resolution
1. Change drupal/composer-scaffold
to drupal/core-composer-scaffold
.
{
"name": "my/project",
"require": {
- "drupal/composer-scaffold": "*",
+ "drupal/core-composer-scaffold": "*",
"composer/installers": "^1.2",
"cweagans/composer-patches": "^1.6.5",
2. Delete trailing comma, because this is not valid JSON.
"extra": {
"composer-scaffold": {
"allowed-packages": [
- "drupal/core",
+ "drupal/core"
],
Remaining tasks
Add credits for greg.1.anderson and mohit_aghera. They added notes to the documentation Using Drupal's Composer Scaffold. See the discussions.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3086118-2.patch | 821 bytes | Krzysztof Domański |
Comments
Comment #2
Krzysztof DomańskiComment #4
Krzysztof DomańskiUnrelated test failure 3031379#comment-13287788.
Comment #5
greg.1.anderson CreditAttribution: greg.1.anderson at Pantheon commentedLooks good - thanks.
Comment #6
alexpottCommitted 0671ed8 and pushed to 8.8.x. Thanks!