Skip to main content

Module cache

Module cache 

Source
Expand description

Cache directory naming and root resolution.

Generates filesystem-safe cache keys from URLs and external identifiers.

Functionsยง

archive_cache_component
Generate a cache directory component for an archive URL + SHA.
git_cache_component
Generate a cache directory component for a git clone URL.
global_cache_root
Resolve the global cache root directory.
safe_component
Generate a filesystem-safe single path component from an external identifier.
safe_component_with_hash
Generate a safe component with a hash suffix to prevent collisions.