Open Source

Lock File

/lɒk faɪl/

Definition

A file (package-lock.json, yarn.lock, Cargo.lock) recording exact resolved dependency versions for reproducible installs.

Example in context

"Commit the lock file — CI installs exactly the same versions as your dev machine. Never add it to .gitignore."

Related terms

Practice this term

Master Lock File in context by working through exercises in the Open Source module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.