Promptles
Programming Basics

Lockfile

intermediate

Definition

A file a project keeps alongside its list of packages that records the exact version of every package installed, so everyone who installs gets the same ones.

In the wild

Two teammates install the same project months apart, and because the lockfile pins every version, both get identical packages and the app behaves the same.

More from Programming Basics