Support `UseCachedPackages` flag to prioritize existing local files during installation
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start by tracing the zpm "install <module>" flow and how configuration flags are read. Inspect the standard <INSTALLEDDIR>/ipm/<module>/<version>/ path and the module.xml validation used during installation. Done means the default still downloads, while UseCachedPackages=1 uses a valid local package and falls back to the registry when it is absent or invalid.
Written by the indexing model from the issue text.
Description
Description
Currently, when a module is uninstalled via IPM, the physical source files often remain in the installation directory (e.g., <INSTALLEDDIR>/ipm/<module>/<version>/). However, if a user attempts to install that same module/version again, IPM ignores the existing local files and initiates a fresh download from the remote registry.
Proposed Solution
I propose a new configuration setting that allows IPM to detect and use existing local source files instead of redownloading them.
Name: UseCachedPackages
Logic:
When running zpm "install <module>":
- Check Setting: If
UseCachedPackagesis set to1. - Local Scan: IPM checks if the directory
<INSTALLEDDIR>/ipm/<module>/<version>/exists and contains a validmodule.xml. - Action:
- If Local Files Exist: IPM skips download from registry and proceeds directly to loading/compiling the existing local files (similar to a
loadcommand). - If Local Files Do Not Exist: IPM performs the standard download from the registry.
Requested Flag Behavior:
0(Default): Maintain current behavior (always fetch from registry).1: Prefer local files if they exist in the standard IPM directory.
- Dominant language
- ObjectScript
- Stars
- 41
- Forks
- 33
- Avg merge
- 23h 20m
- Merged PRs (30d)
- 29
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from intersystems/ipm
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
intersystems/ipm#1338 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
intersystems/ipm#1241 ·
Maintainers usually reply within 1 day
-
CI checks on IRIS for Health Community 2025.3 failing: license expiredPossibly taken @isc-eneil claimed this 2 days ago. Openbug
intersystems/ipm#1335 · 1 assignee ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
intersystems/ipm#1328 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 53/100
intersystems/ipm#1327 ·
Maintainers usually reply within 1 day
All issues in intersystems/ipm
Similar issues
-
Difficulty 2/5 Under an hour Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
5hyuns/maya-workflow-kit-for-blender#568 ·
Maintainers usually reply within 1 day
-
bug follow-up lane:backlog
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Sanne/incus-spawn#2620 · 1 comment ·
Maintainers usually reply within 1 day
-
builtins good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
good first issue new package
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
wimpysworld/deb-get#2158 ·
Maintainers usually reply within 7 days