Skip to main content

Module fetch

Module fetch 

Source
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 dep if it is not cached yet.
require_registry_origin
Shared guard: a git checkout is not interchangeable with a registry release tag.