Dependency Version Pinning

Discussions center on best practices for managing package dependencies, debating exact version pinning, lockfiles, and risks of automatic updates or loose versioning across package managers like npm, Cargo, pip, and Go modules.

➡️ Stable 0.7x Programming Languages
4,534
Comments
19
Years Active
5
Top Authors
#3612
Topic ID

Activity Over Time

2008
1
2009
15
2010
42
2011
43
2012
35
2013
103
2014
208
2015
183
2016
368
2017
232
2018
357
2019
279
2020
367
2021
384
2022
477
2023
402
2024
439
2025
566
2026
33

Keywords

A1 C1 L102 overlay.nix FUSE ci.yml lock.json setup.py overlay.n A2 version versions dependency package dependencies package manager lock library packages manager

Sample Comments

ars • Apr 15, 2013 • View on HN

If you depend on certain versions of a package you have bigger problems.

codegeek • Feb 22, 2024 • View on HN

But the versions are locked right ? Similar to what package-lock.json etc does. So whats the issue ?

pabs3 • Jul 24, 2021 • View on HN

Not recording exact dependency versions seems like the right way to stop those PRs from happening.

leshow • Jun 14, 2019 • View on HN

Because versioning & dependencies are a nightmare that way

jimbokun • Oct 27, 2022 • View on HN

How is the dependency handling situation today? Not being able to refer to specific versions seems like a deal breaker for serious production applications.

dmortin • Nov 26, 2018 • View on HN

Dependencies need bugfixes and you may even want to use new features, so locking is not a permanent solution.

blondin • Oct 12, 2022 • View on HN

a dependency change is no longer an author's problem when they have pinned down versions.

oauea • Jan 10, 2022 • View on HN

Crazy how many projects apparently depended on this library without pinning their versions.

hojijoji • May 28, 2020 • View on HN

Don't you get a bunch of incompatible packages when you restrict to specific fixed version numbers without indication? I guess this is only helpful if you don't plan to reuse your code in another project.

joantune • Mar 24, 2016 • View on HN

The problem is not that, the problem is depending on unreleased versions, instead of simply depending on the version that was written when u wrote your code.a Git submodule like approach would be much better