Skip to content

Uninstalling core modules (e.g. page_cache) triggers false "code/package removed" critical failure #141

Description

@lockjessie

Description

When doing git push, there is a false positive CRITICAL error when a Drupal core module (such as page_cache) is uninstalled. The script incorrectly assumes the module's code has been deleted because it does not scan the Drupal core directories.

✗ CRITICAL: Module 'page_cache' is being uninstalled AND its code/package removed in the same change — uninstall first (deploy), then remove code in a later change

Steps to Reproduce

  1. Uninstall a core module (e.g. page_cache) so it is removed from core.extension.yml.
  2. Commit the core.extension.yml file and do a git push
  3. The script fails with: CRITICAL: Module 'page_cache' is being uninstalled AND its code/package removed in the same change

Possible solution

Update the check-drupal-safe-uninstall.sh script to include core module paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions