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
The README.md is not clear about the preferred status of drupal/core in respect to allowed scaffolding. drupal/core (and drupal/legacy-scaffold-assets) are implicitly allowed to scaffold files. See a.o. \Drupal\Composer\Plugin\Scaffold\AllowedPackages::getAllowedPackages
One allowed package example uses drupal/core as allowed-package, but that is not a realistic example. Therefore I propose to change it.
Proposed resolution
- Mention that drupal/core is allowed to scaffold files.
- Modify the example that uses drupal/core as allowed-package
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff-3101214-2-5.txt | 665 bytes | mrinalini9 |
#5 | drupal-compososer-scaffold-allowed-scaffold-3101214-5.patch | 1020 bytes | mrinalini9 |
#2 | drupal-compososer-scaffold-allowed-scaffold-3101214-2.patch | 1018 bytes | Sutharsan |
Comments
Comment #2
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedComment #4
Kristen PolThanks for the patch.
1) Patch applies cleanly to 8.9, 9.0, and 9.1.
2) Looking at the code:
Nitpick: To be consistent with the rest of the README, add quotes around
`drupal/core`
.3) Back to "Needs work" for 2. And marking Novice as this is simple.
Comment #5
mrinalini9 CreditAttribution: mrinalini9 at Srijan | A Material+ Company for Drupal India Association commentedRerolled patch to 9.1.x along with the changes mentioned in #4.
Comment #6
Kristen Pol@mrinalini9 It's good to add an interdiff file when updating a patch. I'll try to review later today unless someone else does.
Comment #7
mrinalini9 CreditAttribution: mrinalini9 at Srijan | A Material+ Company for Drupal India Association commented@Kristen Pol, Thanks for letting me know, it seems like I missed to attach. Please find the interdiff file for the patch #5.
Comment #8
mrinalini9 CreditAttribution: mrinalini9 at Srijan | A Material+ Company for Drupal India Association commentedComment #9
Kristen PolThanks for the update and interdiff.
1) Changes seem fine.
2) Patch applies cleanly to 8.9, 9.0, and 9.1.
3) Reviewed the wording again and it seems ok to me.
4) Tests pass (for 8.9).
5) Marking RTBC to see if this will be considered for a documentation update.
Comment #10
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedAdding 'composer initiative' tag to improve visibility.
Comment #11
alexpottCommitted and pushed 23d5106efe to 9.1.x and 53d40819bd to 9.0.x and 6b88222c6b to 8.9.x. Thanks!
Backported this docs fix to 8.9.x