intersystems / intersystems/ipm
Implement `AutoUninstallDependency` Configuration for Recursive Uninstalls
- 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
Assessment
This issue has not been assessed yet.