I favor deliberately small, stable dependency surfaces: fork and trim dependencies where that fits, and avoid updates without a concrete need. This extends my approach to reducing dependency footprints and reflects my concerns about dependency security and trust.
I recommend forking dependencies, trimming them to the use case, and not updating unless an update prevents breaking users.
I consider dependency updates riskier than latent bugs, which can be tracked while CVEs are monitored.
When I update a dependency, I believe I must analyze every commit across the full transitive dependency set.
I say not to update a dependency if I do not see anything compelling.
At HashiCorp, when an engineer proposed updating a dependency or replacing a DIY library with an external one, I would ask them to show me the commit we needed.
I have been vocal about this dependency-management mentality for 10+ years.
With supply-chain attacks happening, I feel pretty swell about this dependency-management mentality.
I think there is nuance to operating-system updates: for embedded software with the right properties or requirements, the OS can be something I never update.
As an example of software that can remain finished, I said a radix tree implementation based on the ART paper, if incorporated 13 years ago, would still be completely done today.
I said no update would be required for that 13-year-old ART-paper-based radix tree example.
I make dependency choices across Ghostty’s Linux builds, package installation, compatibility testing, and recompilation tradeoffs. These posts capture decisions and observations, not a single universal rule for dependency management.
I planned that Starting with Ghostty 1.2, libadwaita is a required dependency for Linux builds; it is currently optional.
I said, “I'd love to hear your feedback,” and asked readers to carefully read the section explaining our motivations.
I complained that brew install xyz also upgrades other items, saying, “A 10 second operation turns into a 5 minute” multi-gigabyte download hellscape.
I rarely use brew and thought there was probably some configuration to stop the extra upgrades; I said, “afaik this is the default.”
I said, “Yeah we should support back to 1.2 and we test that in CI.”
I warned that someone may get stuck recompiling the entire world, but said “its worth it (and cached).”
Related: dependency security and trust, reducing dependency footprints, testing and debugging practices