lock file
A file listing the exact version of every dependency, so installs are repeatable.
In more detail
It is generated by the package manager from a looser list of requirements. Its hash makes a good cache key, because the file changes exactly when a dependency changes.
Related terms
- cache key — The name a cache entry is saved and looked up under, usually built from the operating system and a hash of the lock file.
- pip — Python's standard package installer, which downloads packages from the Python Package Index and installs them.
- dependency — Anything a program needs in order to work, such as a library, a tool or another service.
- NuGet — The package manager for .NET: a NuGet package is a zip of compiled libraries that projects reference by name and version.
- dotnet restore — The dotnet command that downloads the NuGet packages a project depends on and records the resolved dependency graph.
- central package management — A NuGet feature that records every package version for a repository in one Directory.Packages.props file, so project files name packages without versions.
Taught in
- Speeding Up Builds: Caching Dependencies — Continuous Integration & Continuous Delivery Pipelines
- Directory.Build.props, global.json and Central Packages — Modern .NET Core, C# & Enterprise Microservices