Expand description
Opt-in network fetch of one exact package version from its registry (npm tarball, PyPI wheel or sdist, crates.io .crate, Go module proxy zip), unpacked into the disk cache. Nothing here runs unless fetching is enabled.
Functionsยง
- cached
- A previously fetched copy, if any (never touches the network).
- fetch
- fetched_
dir - Directory for a fetched package.
- is_git
- Download and unpack
depif it is not cached yet. - require_
registry_ origin - Shared guard: a git checkout is not interchangeable with a registry release tag.