intersystems / intersystems/ipm

Implement `AutoUninstallDependency` Configuration for Recursive Uninstalls

Open
#1,098 0 comments 0 reactions 0 assignees View on GitHub
prio: low
Dominant language
ObjectScript
Stars
41
Forks
29
Avg merge
23h 54m
Merged PRs (30d)
4

Description

Currently, IPM provides a `-r` flag for recursive uninstalls. However, this relies entirely on the user remembering to include it every time. If a user forgets the flag, dependency modules remain in the namespace as "orphans." Over time, this results in **"orphaned modules"**.

### **Proposed Solution**

Introduce a new system-wide configuration setting: `AutoUninstallDependency` (Boolean, defaulting to `0`).

* **When `0` (Default):** The current behavior is preserved. Modules are only uninstalled recursively if the `-r` flag is provided.
* **When `1` (Enabled):** The `uninstall` command becomes "smart." It will automatically attempt to clean up dependencies of the target module without requiring the `-r` flag.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.