Version Pinning

Domain: Package Ecosystem

🎯 Motivation

Pinning exact versions prevents a dependency update from silently breaking your project. Reproducible builds depend on pinning so the same install today and next month produces identical environments.

πŸ“‹ Concrete Example

Write requests==2.31.0 in requirements.txt instead of requests. Tomorrow requests 2.32 might drop a feature you use. The pin locks the tested version until you deliberately upgrade.

πŸ”— Analogy

A recipe says β€œ2 teaspoons of salt,” not β€œsome salt.” The precise amount makes the dish turn out the same every time. β€œSome salt” leaves each batch to chance.