Problem/Motivation

In #3086148: Make scaffold "extra" data key conform with plugin command name, we are attempting to rename the key to drupal-scaffold but we face an issue with testing. One of the approaches to solve the testing problem would be to support both keys for a while. More details in #3086148-4: Make scaffold "extra" data key conform with plugin command name.

Proposed resolution

Support "drupal-scaffold" as an alternate key to specify scaffolding options if "composer-scaffold" is not present.

Remaining tasks

Consider if this is the right approach for #3086148: Make scaffold "extra" data key conform with plugin command name.

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

Drupal's scaffold option may now be specified using "drupal-scaffold".

CommentFileSizeAuthor
#2 3086201-2.patch1.27 KBhussainweb

Comments

hussainweb created an issue. See original summary.

hussainweb’s picture

Status: Active » Needs review
StatusFileSize
new1.27 KB

Here's the patch.

greg.1.anderson’s picture

I don't think we need to do this; we can just fix the tests in #3086148: Make scaffold "extra" data key conform with plugin command name.

hussainweb’s picture

@greg.1.anderson, when the Shell script runs composer install on the composer.json in those fixtures, it clones the scaffold plugin from https://github.com/drupal/core-composer-scaffold. I am assuming that that repo is mirrored from Drupal core (just the sub-path). This is why I made this change so that it can appear in the Github repo after which tests can work.

Is my understanding correct?

greg.1.anderson’s picture

Your understanding is correct. See the fix I made in #3086148: Make scaffold "extra" data key conform with plugin command name. Instead of cloning through Packagist and GitHub, the test instead insures that the Scaffold plugin from the code being tested is used via a path repository.

hussainweb’s picture

Yeah, I checked there. I had thought about that as well as mentioned in the comment but didn't realise we can do it cleanly this way (without changing the composer.json file). Nice one! :)

hussainweb’s picture

Yeah, I checked there. I had thought about that as well as mentioned in the comment but didn't realise we can do it cleanly this way (without changing the composer.json file). Nice one! :)

greg.1.anderson’s picture

Status: Needs review » Closed (won't fix)

Cool, we will continue on the original issue then.