quiet-army-59227
06/18/2024, 9:16 PMbetter-van-82973
06/18/2024, 9:29 PMbroad-processor-92400
06/18/2024, 10:34 PMA
, at version 1.2.3, and someone publishes version 1.2.4 that has a bug in it, without a static lockfile, your code might start using version 1.2.4 straight away, and things will be broken, outside our control).
2. Security: lockfiles include hashes, so if an artifact changes from when you computed the lockfile, you'll be told, rather than silently using a potentially compromised/corrupted version.
3. Performance: choosing dependencies requires "solving" constraints, which can be expensive. A lockfile records a solution statically making later builds much faster.