lockfile

A file that records the exact version of every dependency, including transitive ones, so every install gets the same set.

In more detail

Committing the lockfile means every developer machine and build server installs identical dependencies, and scanners can see exactly what is installed. Examples include package-lock.json for npm and pnpm-lock.yaml for pnpm; in Python, pip-compile can produce a fully pinned requirements.txt. Installing with a frozen lockfile fails if the lockfile and the dependency list disagree, instead of silently changing versions.

Example

pnpm install --frozen-lockfile

Related terms

Taught in

References