Add acquia_disable_package_manager#63
Open
balsama wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new hidden custom module acquia_disable_package_manager that disables Drupal Package Manager operations when running on Acquia Cloud hosting (where the filesystem is unwritable), and installs it as part of the Acquia Trials recipe. The module short-circuits Package Manager validation with an error on Acquia environments and overrides Project Browser/Automatic Updates config to disable UI installs and unattended updates.
Changes:
- New
AhPackageManagerDisablerclass implementing bothEventSubscriberInterface(to fail StatusCheck/PreCreate Package Manager events) andConfigFactoryOverrideInterface(to force-disable Project Browser UI installs and Automatic Updates). - New module metadata (
*.info.yml,*.services.yml,composer.json). - Adds the new module to the
acquia_trialsrecipe install list.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| docroot/modules/custom/acquia_disable_package_manager/src/AhPackageManagerDisabler.php | Event subscriber + config override that disables Package Manager / Project Browser UI install / unattended updates on Acquia hosting. |
| docroot/modules/custom/acquia_disable_package_manager/acquia_disable_package_manager.services.yml | Registers the disabler with event_subscriber and config.factory.override tags. |
| docroot/modules/custom/acquia_disable_package_manager/acquia_disable_package_manager.info.yml | Hidden module info file targeting Drupal core ^11. |
| docroot/modules/custom/acquia_disable_package_manager/composer.json | Module-level Composer manifest requiring acquia/drupal-environment-detector ^1.8. |
| recipes/custom/acquia_trials/recipe.yml | Adds the new module to the Acquia Trials recipe install list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Package Manager Composer operations won't work on Acquia Cloud hosting by design - due to the unwritable filesystem. This module disables those operations.