Expand description
Manager-native downstream package caches (dedup layer 2).
Each language package manager keeps its own global cache/store. By pointing each manager at a stable directory under an osdk-managed root, different projects and SDK versions can reuse that manager’s downloaded dependencies. The directories are deliberately separate; osdk doesn’t provide a universal cross-manager package CAS.
These are emitted during shell activation, osdk exec, and direct shim
execution (and can be inspected via osdk cache env). We only set a
variable if the user hasn’t already set it, so explicit choices win.
Functions§
- cache_
env - Compute the env vars that redirect package-manager caches to the shared
root.
getenvlets callers avoid overriding user-set values. - describe
- Human-readable listing of what the shared caches map to.
- downstream_
root - The shared downstream-cache root,
<cache>/pkg. - manager_
env - Compute version-specific environment variables for one package manager.
- manager_
exec_ env - Use the current process environment when computing manager cache settings.