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_
for - A previously fetched copy, if any (never touches the network).
rootlets the lookup see the project’s configured source, so a cached public copy is never returned for a package whose lockfile pins a private registry. - fetch
- fetch_
for fetch, reading the project’s private-source configuration whenrootis given. Withoutprivate(lockdocs Pro), a package that needs a private source fails withprivate::PrivateRequiredand nothing is sent anywhere.- fetched_
dir - Directory for a fetched package, for the public default source. Callers
that resolved a private source use
fetched_dir_for. - fetched_
dir_ for - Directory for a fetched
depread fromroot’s resolved source. - 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.