Skip to content
Snippets Groups Projects
Unverified Commit b0f50910 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3221748 by Dane Powell, longwave, alexpott: drupal/core is implicitly allowed by scaffold

parent 8fd69fcc
No related branches found
No related tags found
14 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1896Issue #2940605: Can only intentionally re-render an entity with references 20 times,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!872Draft: Issue #3221319: Race condition when creating menu links and editing content deletes menu links,!594Put each entity type table into a details element on admin/config/regional/content-language,!579Issue #2230909: Simple decimals fail to pass validation,!560Move callback classRemove outside of the loop,!555Issue #3202493,!512Issue #3207771: Menu UI node type form documentation points to non-existent function,!485Sets the autocomplete attribute for username/password input field on login form.,!449Issue #2784233: Allow multiple vocabularies in the taxonomy filter,!231Issue #2671162: summary text wysiwyg patch working fine on 9.2.0-dev,!43Resolve #3173180: Add UI for 'loading' html attribute to images,!30Issue #3182188: Updates composer usage to point at ./vendor/bin/composer
...@@ -48,14 +48,14 @@ their destination location. In order to prevent arbitrary dependencies from ...@@ -48,14 +48,14 @@ their destination location. In order to prevent arbitrary dependencies from
copying files via the scaffold mechanism, only those projects that are copying files via the scaffold mechanism, only those projects that are
specifically permitted by the top-level project will be used to scaffold files. specifically permitted by the top-level project will be used to scaffold files.
Example: Permit scaffolding from the project `drupal/core` Example: Permit scaffolding from the project `upstream/project`
``` ```
"name": "my/project", "name": "my/project",
... ...
"extra": { "extra": {
"drupal-scaffold": { "drupal-scaffold": {
"allowed-packages": [ "allowed-packages": [
"drupal/core" "upstream/project"
], ],
... ...
} }
...@@ -63,8 +63,9 @@ Example: Permit scaffolding from the project `drupal/core` ...@@ -63,8 +63,9 @@ Example: Permit scaffolding from the project `drupal/core`
``` ```
Allowing a package to scaffold files also permits it to delegate permission to Allowing a package to scaffold files also permits it to delegate permission to
scaffold to any project that it requires itself. This allows a package to scaffold to any project that it requires itself. This allows a package to
organize its scaffold assets as it sees fit. For example, the project organize its scaffold assets as it sees fit. For example, if `upstream/project`
`drupal/core` may choose to store its assets in a subproject `drupal/assets`. stores its assets in a subproject `upstream/assets`, `upstream/assets` would
implicitly be allowed to scaffold files.
It is possible for a project to obtain scaffold files from multiple projects. It is possible for a project to obtain scaffold files from multiple projects.
For example, a Drupal project using a distribution, and installing on a specific For example, a Drupal project using a distribution, and installing on a specific
...@@ -393,9 +394,6 @@ Sample composer.json for a project that relies on packages that use composer-sca ...@@ -393,9 +394,6 @@ Sample composer.json for a project that relies on packages that use composer-sca
}, },
"extra": { "extra": {
"drupal-scaffold": { "drupal-scaffold": {
"allowed-packages": [
"drupal/core"
],
"locations": { "locations": {
"web-root": "./docroot" "web-root": "./docroot"
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment