Lockfiles, pins and hashes

Lesson 18 of 27 · Dependencies and the safety net · 2 min Get the course to watch

Your build passed on Tuesday and ran the same code on Wednesday, except that the code was not the same. A dependency published a new version overnight, your range allowed it, and the install on the server pulled it in. Nothing in your repository changed.

The rest of this lesson

  • Pins make installs repeatable
  • Install from the lock not around it
  • Hashes check the bytes
  • Getting the digest
  • What a lock does not do
  • Ranges still have a place
  • What to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Secure the code AI writes.