Skip to main content

Module cache

Module cache 

Source
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. getenv lets 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.