Hacker News new | ask | show | jobs
by monocasa 1962 days ago
Pinning is specifying the exact version, so that wouldn't have failed.
1 comments

I disagree. If the library follows semver, or has a predictable way of managing its versions, I would personally set it as broad as possible without breaking compatibility. Especially with something like cryptography. If a critical bug is found, you don't wanna be stuck at a version from a few years ago. Setting a broad pinned version allows you to update this as part of your day to day development.
I mean, literally the term "pinning" is setting the exact version.

If you're setting just constraints but not a specific version, then you're not pinning.