logoalt Hacker News

tyre • yesterday at 9:19 PM • 2 replies • view on HN

Pinning deps only works if you subscribe to security release notifications from every one AND requires that they distribute those ~anywhere. Otherwise you’re missing patches.

And if you’re allowing patches via SemVer, you’re relying on authors using SemVer correctly, which they won’t. For example, the common practice of ~never having a 1.0 so the minor release is basically the major and the patch is effectively the minor.


Replies

gopher_space • yesterday at 11:22 PM

If pinning deps becomes too complicated it might be time to rethink your approach. Updating a pinned dependency is supposed to be a pain in the ass, and you're hand-picking even the security releases.

drdexebtjl • yesterday at 10:03 PM

It’s viable. There are dozens of tools that automatically track dependency updates, and even let you specify a custom policy for pre-1.0 software.

With floating dependencies you still need to track them all to know when you need a new deploy just for the version bumps anyway.