Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstall Drupal module and also remove it with composer [3h] #735

Open
isapisa opened this issue Oct 16, 2024 · 0 comments
Open

Uninstall Drupal module and also remove it with composer [3h] #735

isapisa opened this issue Oct 16, 2024 · 0 comments
Assignees

Comments

@isapisa
Copy link
Contributor

isapisa commented Oct 16, 2024

Issue

https://gizrateam.slack.com/archives/C37GK9VQR/p1723817283448569

I found this page composer/composer#1082 for where we have to do 2 step deployment when we need to uninstall Drupal module and also remove it with composer.
@mariano-dagostino suggested we could try to implement a solution from this comment: composer/composer#10824 (comment).
He said that this seemed like something we could implement in drupal-starter with a list of modules to uninstall in some sort of text file.

it makes a lot of sense and this is easy to implement with our Robo-based approach

Maybe this can be fully automated, while running the deployment.

  1. Ask which modules are installed.
  2. Calculate the difference which what is specified in core.extensions.yml
  3. Uninstall the extra modules.
  4. Continue with the deployment.
  5. If step 3 fails we can run drush config cim and abort the deployment.

Would work on projects running on AWS and Pantheon.

To Do

  • Implement per ^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants