Problem/Motivation
Attempting to use drush cim or drush anything with Drush 12 errors fatally due to the change described here https://github.com/drush-ops/drush/issues/5626
The error message given is:
You have requested a non-existent parameter "config.import.commands".
Remaining tasks
Refactor usage of ConfigImportCommands to rely on the drush() utility function, https://github.com/drush-ops/drush/blob/12.x/src/Commands/config/ConfigC... or to use Drupal's APIs.
User interface changes
API changes
Data model changes
Issue fork config_sync-3369335
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
trackleft2This might be useful https://git.drupalcode.org/project/acquia_cms_common/-/commit/a80b619d9c...
Comment #4
mlncn commentedFantastic, thank you for this! Hoping someone can review before i get to it. Your notes on how to test are great too, thank you trackleft2.
Comment #5
joegraduateAs far as I can tell, the
Drush\Drupal\Commands\config\ConfigImportCommandsdependency that is currently being injected into theConfigSyncCommandsclass is not actually being used so I think the MR could be simplified a bit to just remove that dependency altogether rather than replace it with the new Config Distro service.We may also want to hold off on merging this until after the related Config Distro issue is resolved (#3369336: Config Distro breaks with Drush 12, need to refactor not to use ConfigImportCommands).
Comment #6
joegraduateComment #7
joegraduateMR !10 is ready for review.
Comment #8
tadeanThank you for your work on this! Tested out MR !10 locally with Drush
12.1.3. Verified the original issue:Verified that with the changes in MR !10 the error does not occur, and
config_syncreports expected changes correctly:config_synctests pass:There is one minor
phpcscomplaint about thecreate()function:74 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing)And one minor complaint about the
$state.in the docblock of the constructor:58 | ERROR | [x] Doc comment parameter name "$state." must not end with a dot (Drupal.Commenting.FunctionComment.ParamNameDot)This error was unrelated and not introduced by this MR though.
Comment #9
joegraduateComment #11
joegraduateMerged. Thanks all!